/* ══════════════════════════════════════════════════════════
   GOVTECH FRAMEWORK  –  govtech.css  v2.0
   Responsive: Mobile-first · xs<480 · sm≥480 · md≥768 · lg≥1024 · xl≥1366
   Chuẩn phong cách NHNN / Cổng TTĐT Nhà nước
   ══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --blue:        #004a8f;
  --blue-dark:   #003370;
  --blue-mid:    #005db3;
  --blue-light:  #e8f0fb;
  --blue-hover:  #0062c0;
  --red:         #c0392b;
  --red-dark:    #a93226;
  --gold:        #f5a623;
  --gold-light:  #fff8e8;
  --bg:          #fff;
  --surface:     #f4f7fb;
  --surface-alt: #eef2f8;
  --border:      #c8d6e8;
  --text:        #1a1a2e;
  --text-link:   #004a8f;
  --muted:       #6b7a8d;
  --max-w:       1366px;

  /* Responsive spacing */
  --pad-x:       12px;
  --col-side:    240px;
  --gap:         10px;

  /* Responsive font scale */
  --fs-xs:       10px;
  --fs-sm:       11px;
  --fs-base:     13px;
  --fs-md:       14px;
  --fs-lg:       17px;
  --fs-xl:       18px;

  /* Touch targets */
  --touch-min:   44px;

  /* Nav height for offset */
  --mobile-nav-h: 56px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: "Times New Roman", Times, serif;
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}
html.is-mobile body { padding-bottom: var(--mobile-nav-h); }
a { text-decoration: none; color: inherit; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; height: auto; }
button { cursor: pointer; }

/* ── Material Icons ── */
.mi {
  font-family: 'Material Icons';
  font-weight: normal; font-style: normal;
  font-size: 20px; line-height: 1;
  letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap;
  word-wrap: normal; direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}
.mi.xs  { font-size: 14px; }
.mi.sm  { font-size: 16px; }
.mi.md  { font-size: 20px; }
.mi.lg  { font-size: 24px; }
.mi.xl  { font-size: 28px; }

/* ── DRAFT BANNER ── */
.draft-banner {
  background: #fff3cd;
  border-bottom: 3px solid #e6a817;
  color: #5a3e00;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  padding: 7px var(--pad-x);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.5;
}
.draft-banner .draft-icon { font-size: 16px; color: #c8860a; flex-shrink: 0; }
.draft-banner strong { font-weight: 700; color: #7a3f00; }
.draft-banner .draft-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: #e6a817; color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 2px;
  text-transform: uppercase; letter-spacing: .5px;
}
.header-draft-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(255,215,0,.18);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 9px; font-weight: 700;
  font-family: 'Roboto', Arial, sans-serif;
  padding: 2px 6px; border-radius: 2px;
  text-transform: uppercase; letter-spacing: .4px;
  vertical-align: middle; margin-left: 6px; white-space: nowrap;
}
.header-draft-badge .mi { font-size: 11px; }

/* ══════════════════════════════
   1. TOPBAR
   ══════════════════════════════ */
.topbar {
  background: var(--blue-dark);
  color: #fff;
  font-size: 10.5px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
}
.topbar-left {
  display: flex; align-items: center; gap: 5px;
  flex: 1; min-width: 0; overflow: hidden;
}
.topbar-left .mi { font-size: 13px; color: var(--gold); flex-shrink: 0; }
.topbar-left span.label {
  font-size: 10px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  max-width: 160px; color: rgba(255,255,255,.9);
}
.topbar-links {
  display: flex; align-items: center;
  flex-wrap: nowrap; gap: 0;
}
.topbar-links a {
  color: rgba(255,255,255,.85);
  font-size: 10px; white-space: nowrap;
  padding: 3px 7px;
  border-left: 1px solid rgba(255,255,255,.2);
}
.topbar-links a:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,.1); }
.topbar-links a .mi { font-size: 12px; vertical-align: middle; margin-right: 2px; }

/* ══════════════════════════════
   2. HEADER
   ══════════════════════════════ */
header { background: var(--blue); padding: 0; }
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 8px var(--pad-x);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.header-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.seal {
  width: 52px; height: 52px; flex-shrink: 0;
  background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.seal img { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; }
.header-titles { flex: 1; min-width: 0; }
.header-titles h1 {
  font-size: 9.5px; color: rgba(255,255,255,.85);
  font-weight: normal; text-transform: uppercase;
  font-family: 'Roboto', Arial, sans-serif; letter-spacing: .3px;
  margin-bottom: 1px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.header-titles h2 {
  font-size: 14px; color: #fff; font-weight: 700;
  font-family: 'Roboto', Arial, sans-serif;
  text-transform: uppercase; letter-spacing: .2px; line-height: 1.2;
}
.header-titles p {
  font-size: 10px; color: rgba(255,255,255,.72);
  font-family: 'Roboto', Arial, sans-serif; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Desktop search+contact — hidden mobile */
.header-tools {
  display: none; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0;
}
.header-search {
  display: flex; align-items: center;
  border: 1px solid rgba(255,255,255,.4); border-radius: 3px; overflow: hidden;
}
.header-search input {
  background: rgba(255,255,255,.12); border: none; outline: none;
  color: #fff; font-size: 12px; font-family: 'Roboto', Arial, sans-serif;
  padding: 6px 10px; width: 200px;
}
.header-search input::placeholder { color: rgba(255,255,255,.6); }
.header-search button {
  background: var(--gold); border: none; padding: 6px 10px;
  display: flex; align-items: center;
}
.header-search button .mi { font-size: 18px; color: var(--blue-dark); }
.header-contact { display: flex; align-items: center; gap: 12px; }
.header-contact a {
  color: rgba(255,255,255,.85); font-size: 11px;
  font-family: 'Roboto', Arial, sans-serif;
  display: flex; align-items: center; gap: 4px;
}
.header-contact a .mi { font-size: 14px; color: var(--gold); }
.header-contact a:hover { color: #fff; text-decoration: none; }

/* ══════════════════════════════
   3. INFOBAR
   ══════════════════════════════ */
.infobar {
  background: var(--blue-light);
  border-bottom: 2px solid var(--gold);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.infobar::-webkit-scrollbar { display: none; }
.infobar-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex; align-items: stretch; flex-wrap: nowrap;
}
.infobar-label {
  background: var(--blue); color: #fff;
  font-size: 9.5px; font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700; padding: 5px 10px;
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap; flex-shrink: 0; text-transform: uppercase;
}
.infobar-label .mi { font-size: 13px; color: var(--gold); }
.infobar-items { display: flex; align-items: center; flex-wrap: nowrap; flex: 1; }
.infobar-item {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-right: 1px solid var(--border);
  font-size: 10.5px; font-family: 'Roboto', Arial, sans-serif;
  white-space: nowrap; color: var(--text);
}
.infobar-item .iname { color: var(--muted); font-size: 9.5px; font-weight: 700; }
.infobar-item .ival  { font-weight: 700; color: var(--blue-dark); font-size: 11px; }
.infobar-item .iup  { color: #1a7a3c; }
.infobar-item .idn  { color: #c0392b; }
.infobar-item .mi   { font-size: 12px; }
.infobar-date {
  margin-left: auto; padding: 5px 10px;
  font-size: 9.5px; color: var(--muted);
  white-space: nowrap; flex-shrink: 0;
  font-family: 'Roboto', Arial, sans-serif;
}

/* ══════════════════════════════
   4. HAMBURGER
   ══════════════════════════════ */
.nav-toggle {
  display: flex; align-items: center; gap: 6px;
  background: var(--blue-dark); border: none;
  padding: 0 var(--pad-x); color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 13px; font-weight: 700;
  width: 100%; height: var(--touch-min);
  border-top: 1px solid rgba(255,255,255,.2);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle .mi { font-size: 22px; }

/* ══════════════════════════════
   5. MAIN NAV (mobile-first = vertical drawer)
   ══════════════════════════════ */
nav.mainnav { background: var(--blue-dark); }
.mainnav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-direction: column;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
nav.mainnav.open .mainnav-inner {
  max-height: 100vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* Home button */
.mainnav a.home-btn {
  background: var(--blue); color: #fff;
  padding: 13px 16px; font-size: 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  min-height: var(--touch-min);
}
/* Dropdown row (mobile) */
.mainnav .dropdown { position: relative; width: 100%; }
.mainnav .dropdown > a {
  color: #fff; padding: 11px 14px;
  font-size: var(--fs-base); font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700; display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  width: 100%; min-height: var(--touch-min);
  -webkit-tap-highlight-color: transparent;
}
.mainnav .dropdown > a:hover { background: var(--blue-hover); text-decoration: none; }
.mainnav .dropdown > a::after {
  content: "keyboard_arrow_down";
  font-family: 'Material Icons'; font-size: 18px;
  margin-left: auto; line-height: 1; color: rgba(255,255,255,.65);
}
/* Dropdown menu (mobile: always visible, indented) */
.mainnav .dropdown-menu {
  display: block; position: static;
  background: var(--blue-mid);
  border-left: 4px solid var(--gold);
  box-shadow: none; min-width: unset;
}
.mainnav .dropdown-menu a {
  color: rgba(255,255,255,.88); padding: 10px 14px 10px 22px;
  font-size: var(--fs-sm); font-family: 'Roboto', Arial, sans-serif;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  min-height: var(--touch-min);
}
.mainnav .dropdown-menu a .mi { font-size: 14px; color: var(--gold); }
.mainnav .dropdown-menu a:hover { background: rgba(255,255,255,.12); text-decoration: none; }

/* ══════════════════════════════
   6. SUB-NAV RIBBON
   ══════════════════════════════ */
.subnav {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 2px solid var(--blue);
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-wrap: nowrap;
}
.subnav a {
  display: flex; align-items: center; gap: 4px;
  font-size: 10.5px; color: var(--blue);
  padding: 7px 12px;
  font-family: 'Roboto', Arial, sans-serif; font-weight: 700;
  text-transform: uppercase; border-right: 1px solid var(--border);
  white-space: nowrap; min-height: 34px;
}
.subnav a .mi { font-size: 14px; }
.subnav a:hover { background: var(--blue); color: #fff; text-decoration: none; }
.subnav a:hover .mi { color: var(--gold); }

/* ══════════════════════════════
   7. BANNER STRIP
   ══════════════════════════════ */
.banner-strip {
  background: var(--surface-alt); overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  scrollbar-width: none;
}
.banner-strip::-webkit-scrollbar { display: none; }
.banner-strip-inner { max-width: var(--max-w); margin: 0 auto; display: flex; }
.banner-strip .bimg {
  min-width: 72px; flex: 1; height: 66px;
  background: #fff; border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 4px 3px; gap: 3px;
}
.banner-strip .bimg:last-child { border-right: none; }
.banner-strip .bimg:hover { background: var(--blue-light); }
.banner-strip .bimg img { width: auto; height: 36px; object-fit: contain; }
.banner-strip .bimg span.label {
  font-size: 8px; font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700; color: var(--blue); text-align: center; line-height: 1.2;
}

/* ══════════════════════════════
   8. MAIN CONTENT WRAP
   ══════════════════════════════ */
.content-wrap {
  max-width: var(--max-w); margin: 0 auto;
  padding: 8px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

/* ══════════════════════════════
   9. SECTION TITLE
   ══════════════════════════════ */
.section-title {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700; font-size: var(--fs-base);
  color: var(--blue-dark); text-transform: uppercase;
  border-bottom: 3px solid var(--blue);
  padding-bottom: 5px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.section-title .mi { font-size: 18px; color: var(--red); }
.section-title a.see-all {
  margin-left: auto; font-size: 11px; color: var(--blue-mid);
  font-weight: normal; text-transform: none;
  display: flex; align-items: center; gap: 2px;
}
.section-title a.see-all:hover { color: var(--red); }

/* ══════════════════════════════
   10. NEWS BOX
   ══════════════════════════════ */
.news-box { border: 1px solid var(--border); margin-bottom: var(--gap); border-radius: 2px; }
.news-box-header {
  background: var(--blue); color: #fff;
  padding: 7px 12px; display: flex; align-items: center; gap: 7px;
  font-family: 'Roboto', Arial, sans-serif; font-weight: 700; font-size: 12px;
}
.news-box-header .mi { font-size: 17px; color: var(--gold); }
.news-list { padding: 2px 0; }
.news-item {
  display: grid; grid-template-columns: 60px 1fr;
  gap: 10px; padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.news-item:last-child { border: none; }
.news-item .thumb-block {
  width: 60px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px; overflow: hidden; flex-shrink: 0;
}
.news-item .thumb-block .mi { font-size: 22px; color: #fff; }
.news-item .thumb-block.red   { background: var(--red); }
.news-item .thumb-block.blue  { background: var(--blue-mid); }
.news-item .thumb-block.gold  { background: var(--gold); }
.news-item .thumb-block.green { background: #27ae60; }
.news-item .info a {
  font-size: 12.5px; color: var(--text);
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.45; display: block;
}
.news-item .info a:hover { color: var(--blue-mid); text-decoration: underline; }
.news-item .info .date {
  font-size: 10px; color: var(--muted);
  margin-top: 3px; display: flex; align-items: center; gap: 3px;
}
.news-item .info .date .mi { font-size: 11px; }

/* ══════════════════════════════
   11. RIGHT SIDEBAR
   ══════════════════════════════ */
.side-box { border: 1px solid var(--border); margin-bottom: var(--gap); border-radius: 2px; }
.side-box-header {
  background: var(--blue); color: #fff;
  padding: 7px 11px; font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700; font-size: var(--fs-base);
  display: flex; justify-content: space-between; align-items: center;
}
.side-box-header .expand { cursor: pointer; font-size: 15px; color: var(--gold); }
.side-menu a {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 11px; border-bottom: 1px solid var(--border);
  font-size: var(--fs-base); font-family: 'Roboto', Arial, sans-serif;
  color: var(--text); min-height: var(--touch-min);
  -webkit-tap-highlight-color: transparent;
}
.side-menu a:hover { background: var(--blue-light); color: var(--blue-dark); text-decoration: none; }
.side-menu a .icon {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; border-radius: 3px;
}
.side-menu a .icon.red  { background: #fdf3f3; border: 1px solid #e8c0c0; }
.side-menu a .icon.gold { background: var(--gold-light); border: 1px solid #f0c060; }
.side-menu a .icon.blue { background: var(--blue-light); border: 1px solid #aac4e8; }
.side-menu a .icon .mi { font-size: 15px; }
.side-menu a .icon.red  .mi { color: var(--red); }
.side-menu a .icon.gold .mi { color: #b8680a; }
.side-menu a .icon.blue .mi { color: var(--blue-mid); }
.hotline-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
.hotline-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 5px; padding: 10px 4px;
  font-size: 12px; font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700; border: none; text-align: center;
  border-radius: 2px; min-height: var(--touch-min);
}
.hotline-btn .mi { font-size: 18px; }
.hotline-btn.red  { background: var(--red); color: #fff; }
.hotline-btn.blue { background: var(--blue); color: #fff; }
.hotline-btn:hover { opacity: .88; text-decoration: none; }

/* ══════════════════════════════
   12. DOCS
   ══════════════════════════════ */
.docs-section { margin-bottom: var(--gap); }
.docs-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.docs-box { border: 1px solid var(--border); border-radius: 2px; }
.docs-box-header {
  background: var(--blue); color: #fff;
  padding: 6px 11px; font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700; font-size: 12px; text-transform: uppercase;
}
.docs-list { padding: 3px 9px; }
.docs-list .doc-item {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 7px 0; border-bottom: 1px solid var(--border);
  font-size: 12px; font-family: 'Roboto', Arial, sans-serif;
}
.docs-list .doc-item:last-child { border: none; }
.docs-list .doc-icon { color: var(--blue-mid); flex-shrink: 0; margin-top: 2px; }
.docs-list .doc-icon .mi { font-size: 16px; }
.docs-list .doc-item a { color: var(--text-link); line-height: 1.45; }
.docs-list .doc-item a:hover { color: var(--red); text-decoration: underline; }
.docs-list .doc-item .ddate { color: var(--muted); font-size: 10px; margin-top: 2px; }

/* ══════════════════════════════
   13. PROJECT GRID
   ══════════════════════════════ */
.project-section {
  background: var(--surface);
  border: 1px solid var(--border); border-top: 3px solid var(--blue);
  margin-bottom: var(--gap); border-radius: 2px;
}
.project-header {
  background: var(--blue); color: #fff;
  padding: 8px 12px; font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700; font-size: var(--fs-base);
  text-transform: uppercase; letter-spacing: .3px;
  display: flex; align-items: center; gap: 7px;
}
.project-header .mi { font-size: 18px; color: var(--gold); }
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px; padding: 10px;
}
.project-card {
  background: #fff; border: 1px solid var(--border);
  padding: 10px 8px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  border-radius: 2px;
  transition: border-color .18s, box-shadow .18s;
}
.project-card:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 2px 8px rgba(0,74,143,.1);
  text-decoration: none;
}
.project-card .card-icon { margin-bottom: 5px; display: flex; align-items: center; justify-content: center; }
.project-card .card-icon .mi { font-size: 26px; color: var(--blue); }
.project-card .card-title {
  font-size: 11px; font-family: 'Roboto', Arial, sans-serif;
  color: var(--text); font-weight: 700; line-height: 1.3; display: block;
}
.project-card:hover .card-title { color: var(--blue-mid); }
.project-card .card-tag {
  font-size: 9px; color: var(--blue); background: var(--blue-light);
  padding: 2px 5px; border-radius: 2px; margin-top: 4px;
  display: inline-block; font-family: 'Roboto', Arial, sans-serif; font-weight: 700;
}

/* ══════════════════════════════
   14. CONTRACTS TABLE
   ══════════════════════════════ */
.contracts-section { margin-bottom: var(--gap); }
.contracts-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 2px;
}
.contracts-table {
  width: 100%; border-collapse: collapse;
  font-size: 12px; font-family: 'Roboto', Arial, sans-serif;
  min-width: 480px;
}
.contracts-table th {
  background: var(--blue); color: #fff;
  padding: 7px 10px; text-align: left;
  font-weight: 700; white-space: nowrap; font-size: 11.5px;
}
.contracts-table td {
  padding: 7px 10px; border-bottom: 1px solid var(--border); vertical-align: top;
}
.contracts-table tr:nth-child(even) td { background: var(--blue-light); }
.contracts-table tr:hover td { background: #dce8f8; }
.contracts-table td a { color: var(--blue-mid); font-weight: 700; }
.contracts-table td a:hover { text-decoration: underline; color: var(--red); }
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 2px;
  font-size: 10px; font-weight: 700;
  font-family: 'Roboto', Arial, sans-serif;
}
.badge .mi { font-size: 11px; }
.badge.sol    { background: #e8f0fb; color: var(--blue-dark); border: 1px solid #aac4e8; }
.badge.active { background: #e6f9ee; color: #1a6b3c; border: 1px solid #a0d4b0; }

/* ══════════════════════════════
   15. FOOTER
   ══════════════════════════════ */
footer {
  background: var(--blue-dark); color: #fff;
  padding: 18px 0 12px; margin-top: 8px;
  border-top: 3px solid var(--gold);
}
html.is-mobile footer { padding-bottom: calc(var(--mobile-nav-h) + 12px); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.footer-title {
  font-family: 'Roboto', Arial, sans-serif; font-weight: 700;
  font-size: 11.5px; text-align: center; text-transform: uppercase;
  margin-bottom: 12px; letter-spacing: .3px; color: var(--gold);
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 12px; }
.footer-col h4 {
  font-family: 'Roboto', Arial, sans-serif; font-size: var(--fs-sm);
  font-weight: 700; color: var(--gold);
  margin-bottom: 5px; text-transform: uppercase;
  padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-col p,
.footer-col a {
  font-size: var(--fs-sm); color: rgba(255,255,255,.8);
  display: block; margin-bottom: 3px; line-height: 1.5;
}
.footer-col a:hover { color: var(--gold); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 9px; text-align: center;
  font-size: 10.5px; color: rgba(255,255,255,.65);
  font-family: 'Roboto', Arial, sans-serif;
}

/* ══════════════════════════════
   16. MOBILE BOTTOM NAV
   ══════════════════════════════ */
.mobile-bottom-nav {
  display: none; position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--mobile-nav-h);
  background: var(--blue-dark); border-top: 2px solid var(--gold);
  z-index: 600;
  /* Safe area for iPhone home bar */
  padding-bottom: env(safe-area-inset-bottom, 0);
}
html.is-mobile .mobile-bottom-nav { display: flex; }
.mobile-bottom-nav a {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 8.5px; font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700; gap: 1px;
  border-right: 1px solid rgba(255,255,255,.1);
  padding: 4px 2px; min-height: var(--mobile-nav-h);
  -webkit-tap-highlight-color: transparent;
}
.mobile-bottom-nav a:last-child { border-right: none; }
.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover { color: var(--gold); text-decoration: none; }
.mobile-bottom-nav a .mi { font-size: 21px; }

/* ══════════════════════════════════════════════════════════
   BREAKPOINTS  (Mobile-First)
   xs < 480 | sm ≥ 480 | md ≥ 768 | lg ≥ 1024 | xl ≥ 1366
   ══════════════════════════════════════════════════════════ */

/* ── sm ≥ 480px ── */
@media (min-width: 480px) {
  :root {
    --pad-x:    14px;
    --gap:      12px;
    --fs-base:  13px;
    --fs-md:    14px;
    --fs-xl:    19px;
  }
  .topbar-left span.label { max-width: 220px; }
  .topbar-links a { padding: 3px 9px; font-size: 10.5px; }
  .seal { width: 58px; height: 58px; }
  .seal img { width: 52px; height: 52px; }
  .header-titles h2 { font-size: 16px; }
  .banner-strip .bimg { min-width: 82px; height: 72px; }
  .banner-strip .bimg img { height: 40px; }
  .banner-strip .bimg span.label { font-size: 8.5px; }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .news-item { grid-template-columns: 66px 1fr; gap: 11px; }
  .news-item .thumb-block { width: 66px; height: 50px; }
  .news-item .info a { font-size: 13px; }
}

/* ── md ≥ 768px (tablet) ── */
@media (min-width: 768px) {
  :root {
    --pad-x:     18px;
    --col-side:  250px;
    --gap:       14px;
    --fs-base:   13.5px;
    --fs-md:     14px;
    --fs-xl:     20px;
  }
  .topbar-left span.label { max-width: none; font-size: 10.5px; }
  .topbar-links a { font-size: 10.5px; padding: 3px 11px; }

  /* Header */
  .seal { width: 68px; height: 68px; }
  .seal img { width: 62px; height: 62px; }
  .header-titles h1 { font-size: 11px; }
  .header-titles h2 { font-size: 18px; }
  .header-titles p { font-size: 11px; }

  /* Hide hamburger on tablet+ */
  .nav-toggle { display: none; }

  /* Horizontal nav */
  .mainnav-inner {
    flex-direction: row; align-items: stretch;
    max-height: none; overflow: visible;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .mainnav-inner::-webkit-scrollbar { display: none; }
  nav.mainnav.open .mainnav-inner,
  nav.mainnav .mainnav-inner { max-height: none; overflow-y: visible; }

  .mainnav a.home-btn {
    border-bottom: none; border-right: 1px solid rgba(255,255,255,.2);
    padding: 10px 13px; flex-shrink: 0; min-height: unset;
  }
  .mainnav .dropdown { width: auto; flex-shrink: 0; }
  .mainnav .dropdown > a {
    width: auto; border-bottom: none;
    border-right: 1px solid rgba(255,255,255,.15);
    padding: 10px 13px; white-space: nowrap;
    min-height: unset; font-size: 12.5px;
  }
  .mainnav .dropdown > a::after { margin-left: 3px; font-size: 15px; }
  .mainnav .dropdown-menu {
    display: none; position: absolute;
    top: 100%; left: 0; min-width: 240px;
    background: #fff; border: 1px solid var(--border);
    border-top: 3px solid var(--blue);
    box-shadow: 0 4px 16px rgba(0,60,120,.15);
    z-index: 300; border-left: none;
  }
  .mainnav .dropdown:hover .dropdown-menu { display: block; }
  .mainnav .dropdown-menu a {
    color: var(--text); padding: 8px 13px;
    border-bottom: 1px solid var(--border);
    min-height: unset; font-size: var(--fs-sm);
  }
  .mainnav .dropdown-menu a .mi { color: var(--blue-mid); }
  .mainnav .dropdown-menu a:hover { background: var(--blue-light); color: var(--blue-dark); }

  /* Banner */
  .banner-strip .bimg { min-width: 0; flex: 1; height: 80px; }
  .banner-strip .bimg img { height: 46px; }
  .banner-strip .bimg span.label { font-size: 9px; }

  /* Subnav */
  .subnav a { font-size: 11px; padding: 7px 14px; }

  /* Layout */
  .content-wrap { grid-template-columns: 1fr var(--col-side); gap: var(--gap); }
  .docs-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .news-item { grid-template-columns: 72px 1fr; }
  .news-item .thumb-block { width: 72px; height: 54px; }
  .news-item .info a { font-size: 13.5px; }

  /* Hide mobile bottom nav */
  .mobile-bottom-nav { display: none !important; }
  html.is-mobile body { padding-bottom: 0; }
  html.is-mobile footer { padding-bottom: 18px; }
}

/* ── lg ≥ 1024px (desktop) ── */
@media (min-width: 1024px) {
  :root {
    --pad-x:     22px;
    --col-side:  260px;
    --gap:       16px;
    --fs-base:   13.5px;
    --fs-xl:     22px;
  }
  /* Show header tools */
  .header-tools { display: flex; }
  .seal { width: 76px; height: 76px; }
  .seal img { width: 70px; height: 70px; }
  .header-titles h1 { font-size: var(--fs-base); }
  .header-titles h2 { font-size: 22px; }
  .header-titles p { font-size: 12px; white-space: normal; }

  /* Banner */
  .banner-strip .bimg { height: 84px; }
  .banner-strip .bimg img { height: 50px; }
  .banner-strip .bimg span.label { font-size: 9.5px; }

  /* Layout */
  .project-grid { grid-template-columns: repeat(4, 1fr); }
  .project-card .card-icon .mi { font-size: 30px; }
  .project-card .card-title { font-size: 11.5px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .news-item .info a { font-size: var(--fs-base); }
  .contracts-table { font-size: 13px; }
}

/* ── xl ≥ 1366px ── */
@media (min-width: 1366px) {
  :root {
    --pad-x:  24px;
    --gap:    18px;
  }
  .banner-strip .bimg { height: 90px; }
  .banner-strip .bimg img { height: 54px; }
  .mainnav .dropdown > a { padding: 11px 16px; font-size: var(--fs-base); }
  .project-card .card-title { font-size: 12px; }
}

/* ══════════════════════════════════════════════════════════
   JS-DRIVEN DEVICE OVERRIDES
   Các class .is-mobile / .is-desktop gắn vào <html> bởi govtech.js
   Đây là override tường minh để ép layout khi JS đã xác định thiết bị
   ══════════════════════════════════════════════════════════ */

/* ─── IS-MOBILE overrides ─── */
html.is-mobile .content-wrap       { grid-template-columns: 1fr; }
html.is-mobile .project-grid       { grid-template-columns: repeat(2, 1fr); }
html.is-mobile .footer-grid        { grid-template-columns: 1fr; }
html.is-mobile .docs-grid          { grid-template-columns: 1fr; }
html.is-mobile .nav-toggle         { display: flex !important; }
html.is-mobile .mainnav-inner      { flex-direction: column; max-height: 0; }
html.is-mobile nav.mainnav.open
  .mainnav-inner                   { max-height: 100vh; overflow-y: auto; }
html.is-mobile .header-tools       { display: none !important; }
html.is-mobile .mainnav .dropdown-menu {
  display: block; position: static;
  background: var(--blue-mid); border-left: 4px solid var(--gold);
  box-shadow: none;
}
html.is-mobile .mainnav .dropdown-menu a {
  color: rgba(255,255,255,.88);
  padding: 10px 14px 10px 22px; min-height: var(--touch-min);
}
html.is-mobile .mainnav .dropdown-menu a .mi { color: var(--gold); }

/* ─── IS-TABLET overrides (touch wide screen: 768-1023) ─── */
html.is-tablet .content-wrap       { grid-template-columns: 1fr var(--col-side); }
html.is-tablet .project-grid       { grid-template-columns: repeat(3, 1fr); }
html.is-tablet .footer-grid        { grid-template-columns: 1fr 1fr; }
html.is-tablet .docs-grid          { grid-template-columns: 1fr 1fr; }
html.is-tablet .nav-toggle         { display: none !important; }
html.is-tablet .mobile-bottom-nav  { display: none !important; }
html.is-tablet body                { padding-bottom: 0; }
html.is-tablet footer              { padding-bottom: 18px; }

/* ─── IS-DESKTOP overrides ─── */
html.is-desktop .content-wrap      { grid-template-columns: 1fr var(--col-side); }
html.is-desktop .project-grid      { grid-template-columns: repeat(4, 1fr); }
html.is-desktop .footer-grid       { grid-template-columns: repeat(3, 1fr); }
html.is-desktop .docs-grid         { grid-template-columns: 1fr 1fr; }
html.is-desktop .nav-toggle        { display: none !important; }
html.is-desktop .mobile-bottom-nav { display: none !important; }
html.is-desktop body               { padding-bottom: 0; }
html.is-desktop footer             { padding-bottom: 20px; }
html.is-desktop .header-tools      { display: flex; }
html.is-desktop .mainnav-inner     { flex-direction: row; max-height: none; overflow-y: visible; }
html.is-desktop .mainnav .dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 240px; background: #fff;
  border: 1px solid var(--border); border-top: 3px solid var(--blue);
  box-shadow: 0 4px 16px rgba(0,60,120,.15); z-index: 300; border-left: none;
}
html.is-desktop .mainnav .dropdown:hover .dropdown-menu { display: block; }
html.is-desktop .mainnav .dropdown-menu a {
  color: var(--text); padding: 8px 13px;
  border-bottom: 1px solid var(--border); min-height: unset;
}
html.is-desktop .mainnav .dropdown-menu a .mi { color: var(--blue-mid); }
html.is-desktop .mainnav .dropdown-menu a:hover {
  background: var(--blue-light); color: var(--blue-dark);
}
