/* ═══════════════════════════════════════════════════════
   XSMT.TODAY — Brand & UI Override CSS v1.0
   xsmt.today | Xổ số Miền Trung
   Color palette: Navy #1a3a6e · Red #e53935 · Amber #f59e0b
   ═══════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────── */
:root {
  --sbm-navy:        #1a3a6e;
  --sbm-navy-dark:   #0d2b5a;
  --sbm-navy-deeper: #061a40;
  --sbm-blue:        #1e56a0;
  --sbm-red:         #e53935;
  --sbm-red-dark:    #c62828;
  --sbm-amber:       #f59e0b;
  --sbm-amber-dark:  #d97706;
  --sbm-bg-body:     #f1f5f9;
  --sbm-bg-tint:     #eff6ff;
  --sbm-bg-tint2:    #e0f2fe;
  --sbm-border-tint: #bfdbfe;
  --sbm-text-muted:  #64748b;
}

/* ── Base & body ─────────────────────────────────────── */
body {
  background: var(--sbm-bg-body);
}
a {
  color: var(--sbm-navy);
  transition: color .18s ease;
}
a:hover {
  color: var(--sbm-red);
}

/* ══════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════ */
header {
  background: #fefefe !important;
  border-bottom: 2px solid #dbe7f5;
  box-shadow: 0 3px 12px rgba(6,26,64,.14) !important;
}

/* Keep the header height stable while allowing the logo artwork to render
   larger than its layout box. The image's white canvas blends into header. */
.logo {
  flex: 0 0 204px;
  width: 204px;
  height: 52px;
  margin-right: 24px;
}
.logo a.txtlogo {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.logo img {
  position: absolute;
  top: 50%;
  left: 0;
  height: 64px;
  width: auto;
  max-width: none;
  display: block;
  transform: translateY(-50%);
}
@media (max-width: 660px) {
  .logo {
    width: 162px;
    height: 44px;
    margin-right: 0;
  }
  .logo img {
    left: 50%;
    height: 46px;
    transform: translate(-50%, -50%);
  }
}

/* Header search */
.header-search {
  margin-left: auto;
  flex-shrink: 0;
}
.header-search form {
  display: flex;
  align-items: center;
}
.header-search-input {
  background: #f2f6fb;
  border: 1px solid #c7d7ea;
  border-radius: 20px 0 0 20px;
  padding: 5px 14px;
  color: #0d2b5a;
  font-size: 13px;
  outline: none;
  width: 155px;
  transition: background .2s, width .25s;
  font-family: inherit;
}
.header-search-input::placeholder {
  color: #6b7f99;
}
.header-search-input:focus {
  background: #fff;
  border-color: #1769aa;
  width: 200px;
}
.header-search-btn {
  background: #0d4f91;
  border: 1px solid #0d4f91;
  border-left: none;
  border-radius: 0 20px 20px 0;
  padding: 5px 11px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  height: 31px;
}
.header-search-btn:hover {
  background: var(--sbm-red);
  border-color: var(--sbm-red);
}

/* ══════════════════════════════════════════════════════
   NAV — Desktop
   ══════════════════════════════════════════════════════ */
#nav-horizontal-list > li > a {
  color: #0d3768 !important;
  transition: background .2s ease, color .2s ease;
}
#nav-horizontal-list > li > span.arr-d {
  color: #0d3768;
}
#nav-horizontal-list > li:hover > a,
#nav-horizontal-list > li.current-menu-item > a {
  background: var(--sbm-red) !important;
  color: #fff !important;
}
#nav-horizontal-list > li.current-menu-item > a {
  border-bottom: 3px solid rgba(255,255,255,.8) !important;
}
#nav-horizontal-list ul.menu-c2 {
  background: #0d2b5a !important;
  border-top: 2px solid var(--sbm-red);
  box-shadow: 0 6px 16px rgba(6,26,64,.45) !important;
}
#nav-horizontal-list ul.menu-c2 li a {
  transition: background .15s ease, color .15s ease;
}
#nav-horizontal-list ul.menu-c2 li a:hover {
  background: var(--sbm-navy) !important;
  color: var(--sbm-amber) !important;
}

/* ══════════════════════════════════════════════════════
   NAV — Mobile
   ══════════════════════════════════════════════════════ */
@media (max-width: 660px) {
  nav#nav {
    background: #0d2b5a !important;
    box-shadow: 0 6px 16px rgba(6,26,64,.5) !important;
  }
  nav#nav .nav-mobile li {
    border-bottom-color: rgba(255,255,255,.08) !important;
  }
  nav#nav .nav-mobile li a:hover {
    background: rgba(255,255,255,.06);
    color: var(--sbm-amber);
  }
  .header-search {
    display: none;
  }
  /* Center the logo now that header-search is hidden — otherwise it sits
     flush next to the hamburger button with dead space on the right. */
  .top-info {
    position: relative;
  }
  .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .navbar-toggle {
    position: relative;
    z-index: 2;
    border-color: #0d4f91;
  }
  .navbar-toggle .icon-bar {
    background: #0d4f91;
  }
}

/* ══════════════════════════════════════════════════════
   BOX / CARD SECTION TITLES
   ══════════════════════════════════════════════════════ */
h2.regional-title,
.tit-mien,
.box > .regional-title,
.box > .tit-mien {
  background: linear-gradient(135deg, #c62828, #b71c1c) !important;
}
h3.regional-title,
.box .regional-title.mag5-0,
.tr-hover.clearfix h3.regional-title {
  background: linear-gradient(135deg, #c62828, #b71c1c) !important;
}

/* ══════════════════════════════════════════════════════
   MULTI-CITY TABLE — Province header row (gr-yellow)
   ══════════════════════════════════════════════════════ */
table.coltwocity tr.gr-yellow th,
table.colthreecity tr.gr-yellow th,
table.colfourcity tr.gr-yellow th {
  background: linear-gradient(135deg, #1e56a0, #1a3a6e) !important;
}
table.coltwocity tr.gr-yellow th.first,
table.colthreecity tr.gr-yellow th.first,
table.colfourcity tr.gr-yellow th.first {
  background: var(--sbm-navy-deeper) !important;
}
table.coltwocity tr.gr-yellow th a:hover,
table.colthreecity tr.gr-yellow th a:hover,
table.colfourcity tr.gr-yellow th a:hover {
  color: var(--sbm-amber) !important;
}

/* ══════════════════════════════════════════════════════
   DAY / PROVINCE TAB PILLS
   ══════════════════════════════════════════════════════ */
ul.tab-panel li a {
  color: var(--sbm-navy) !important;
  background: var(--sbm-bg-tint) !important;
  border-color: var(--sbm-border-tint) !important;
}
ul.tab-panel li.active a,
ul.tab-panel li a:hover {
  background: var(--sbm-navy) !important;
  color: #fff !important;
  border-color: var(--sbm-navy) !important;
  box-shadow: 0 2px 8px rgba(26,58,110,.28) !important;
}

/* ══════════════════════════════════════════════════════
   INLINE STAT TABS
   ══════════════════════════════════════════════════════ */
.tab-thong-ke-inline > div > a {
  color: var(--sbm-navy) !important;
  background: var(--sbm-bg-tint) !important;
  border-color: var(--sbm-border-tint) !important;
}
.tab-thong-ke-inline > div > a:hover {
  background: var(--sbm-navy) !important;
  color: #fff !important;
  border-color: var(--sbm-navy) !important;
}

/* ══════════════════════════════════════════════════════
   CITY NAME ACTIVE TAB
   ══════════════════════════════════════════════════════ */
.one-city .city-name.active,
.one-city .tabkq.active {
  background: var(--sbm-navy) !important;
  color: #fff !important;
}

/* ══════════════════════════════════════════════════════
   SIDEBAR CUSTOM
   ══════════════════════════════════════════════════════ */
.sb-today-label {
  color: var(--sbm-navy) !important;
  background: var(--sbm-bg-tint) !important;
  border-bottom-color: var(--sbm-border-tint) !important;
}
.sb-week-table tr.sb-today-row td {
  background: var(--sbm-bg-tint) !important;
  color: var(--sbm-navy) !important;
}
.sb-week-table tr.sb-today-row .sb-day {
  color: var(--sbm-navy) !important;
}
.sb-quicklinks li a {
  color: var(--sbm-navy) !important;
  transition: color .18s ease, background .18s ease;
}
.sb-quicklinks li a:hover {
  color: var(--sbm-red) !important;
  background: var(--sbm-bg-tint) !important;
}
.sb-quicklinks li a::before {
  color: var(--sbm-red) !important;
}
.sb-quicklinks li .sb-province::before {
  color: var(--sbm-navy) !important;
}

/* ══════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════ */
.paging a:hover,
.paging .current,
.paging span.current {
  background: var(--sbm-navy) !important;
  border-color: var(--sbm-navy) !important;
  color: #fff !important;
}

/* ══════════════════════════════════════════════════════
   XEM THÊM / SEE-MORE BUTTONS
   ══════════════════════════════════════════════════════ */
.btn-see-more {
  color: var(--sbm-navy) !important;
  background: var(--sbm-bg-tint) !important;
  border-color: var(--sbm-border-tint) !important;
}
.btn-see-more:hover {
  background: var(--sbm-bg-tint2) !important;
}
#result-see-more {
  color: var(--sbm-navy) !important;
  background: var(--sbm-bg-tint) !important;
  border-color: var(--sbm-border-tint) !important;
}
#result-see-more:hover {
  background: var(--sbm-bg-tint2) !important;
}

/* ══════════════════════════════════════════════════════
   ITEM SUBLINKS (navigation sub-pills)
   ══════════════════════════════════════════════════════ */
a.item_sublink,
.item_sublink {
  color: var(--sbm-navy) !important;
  background: var(--sbm-bg-tint) !important;
  border-color: var(--sbm-border-tint) !important;
}
a.item_sublink:hover {
  background: var(--sbm-navy) !important;
  color: #fff !important;
  border-color: var(--sbm-navy) !important;
}

/* ══════════════════════════════════════════════════════
   TABLE HOVER — cool tint instead of warm amber
   ══════════════════════════════════════════════════════ */
table.kqmb tr:hover {
  background: var(--sbm-bg-tint) !important;
}
table.mag0 tr:hover td,
table.tbl50 tr:hover td,
table.with-border tr:hover td,
table.bang-cau tr:hover td,
table.colgiai tr:hover td,
.box.tr-hover > div > table tr:hover td,
.box table tr:hover td,
table.box tr:hover td {
  background: var(--sbm-bg-tint) !important;
  color: inherit !important;
}
table.coltwocity tr:not(.gr-yellow):hover,
table.colthreecity tr:not(.gr-yellow):hover,
table.colfourcity tr:not(.gr-yellow):hover {
  background: var(--sbm-bg-tint) !important;
}

/* ══════════════════════════════════════════════════════
   STATS FORM BUTTON
   ══════════════════════════════════════════════════════ */
#statistic-form .btn-danger {
  background: var(--sbm-navy) !important;
  color: #fff !important;
}
#statistic-form .btn-danger:hover {
  background: var(--sbm-navy-dark) !important;
}

/* ══════════════════════════════════════════════════════
   NEWS / BLOG LIST
   ══════════════════════════════════════════════════════ */
.box.cate-news li a.bold { color: var(--sbm-navy) !important; transition: color .18s ease; }
.box.cate-news li a.bold:hover { color: var(--sbm-red) !important; }
.cate-news ul li h3 a { color: var(--sbm-navy) !important; transition: color .18s ease; }
.cate-news ul li h3 a:hover { color: var(--sbm-red) !important; }

/* ══════════════════════════════════════════════════════
   CONTENT LINKS
   ══════════════════════════════════════════════════════ */
.content-right a { color: var(--sbm-navy) !important; transition: color .18s ease; }
.content-right a:hover { color: var(--sbm-red) !important; }
table.table-fixed a { color: var(--sbm-navy) !important; transition: color .18s ease; }
table.table-fixed a:hover { color: var(--sbm-red) !important; }
.box .bottom-html a { color: var(--sbm-navy) !important; }
.alert a { color: var(--sbm-navy) !important; }

/* ══════════════════════════════════════════════════════
   SINGLE / PAGE CONTENT
   ══════════════════════════════════════════════════════ */
.box-detail h1,
.box-detail h2,
.box-detail h3 {
  color: var(--sbm-navy) !important;
}

/* ══════════════════════════════════════════════════════
   GLOSSARY — card redesign
   ══════════════════════════════════════════════════════ */

/* Disclaimer */
.glossary-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid var(--sbm-amber);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 12.5px !important;
  color: #92400e !important;
  margin-bottom: 18px !important;
  line-height: 1.6 !important;
}

/* Search box */
.glossary-search-wrap {
  position: relative;
  margin-bottom: 18px;
}
.glossary-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px 10px 40px;
  border: 1.5px solid #c7d9f0;
  border-radius: 8px;
  font-size: 13.5px;
  color: #1e293b;
  background: #f8fafc;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.glossary-search-input:focus {
  border-color: var(--sbm-red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(229,57,53,.12);
}
.glossary-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  font-size: 15px;
}
.glossary-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 14px;
}
.glossary-count-badge {
  background: #dbeafe;
  color: var(--sbm-navy);
  border-radius: 20px;
  padding: 2px 10px;
  font-weight: 600;
}

/* 2-column grid wrapper (injected by JS) */
.glossary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 680px) {
  .glossary-grid { grid-template-columns: 1fr; }
}

/* Each JS-injected .glossary-card */
.glossary-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(26,58,110,.10);
  transition: box-shadow .2s, transform .2s;
}
.glossary-card:hover {
  box-shadow: 0 6px 18px rgba(26,58,110,.18);
  transform: translateY(-2px);
}
.glossary-card.glossary-hidden { display: none !important; }

/* Card header (dt) */
.glossary-card dt,
dl.xoso-glossary dt {
  background: linear-gradient(135deg, var(--sbm-navy) 0%, #1e4d8c 100%) !important;
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  padding: 10px 14px !important;
  margin: 0 !important;
  border: none !important;
  line-height: 1.4;
  letter-spacing: .01em;
  display: flex !important;
  align-items: center;
  gap: 6px;
}

/* Card body (dd) */
.glossary-card dd,
dl.xoso-glossary dd {
  background: #fff !important;
  border: none !important;
  padding: 12px 14px 14px !important;
  margin: 0 !important;
  font-size: 13px !important;
  color: #374151 !important;
  line-height: 1.8 !important;
}
.glossary-card dd a,
dl.xoso-glossary dd a {
  color: var(--sbm-red) !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: color .18s ease;
}
.glossary-card dd a:hover,
dl.xoso-glossary dd a:hover {
  text-decoration: underline !important;
}

/* Fallback: nếu JS chưa chạy, vẫn trông ok */
dl.xoso-glossary {
  margin: 0 !important;
  padding: 0 !important;
}
dl.xoso-glossary dt {
  border-radius: 8px 8px 0 0 !important;
  margin-top: 14px !important;
}
dl.xoso-glossary dt:first-of-type { margin-top: 0 !important; }
dl.xoso-glossary dd {
  border-radius: 0 0 8px 8px !important;
  border: 1px solid #dbeafe !important;
  border-top: none !important;
}

/* No-results message */
.glossary-no-results {
  text-align: center;
  padding: 32px 0;
  color: #94a3b8;
  font-size: 14px;
  display: none;
  grid-column: 1 / -1;
}

/* ══════════════════════════════════════════════════════
   UTILITY CLASSES — colour overrides
   ══════════════════════════════════════════════════════ */
.cl-text-primary { color: var(--sbm-navy) !important; }

/* ══════════════════════════════════════════════════════
   SITE FOOTER — complete new design
   ══════════════════════════════════════════════════════ */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(63, 139, 214, .13), transparent 34%),
    radial-gradient(circle at 92% 82%, rgba(239, 68, 68, .07), transparent 30%),
    linear-gradient(135deg, #f5f9fd 0%, #e6f0fa 52%, #dce9f6 100%);
  color: #173f66;
  margin-top: 28px;
  padding: 0;
  border-top: 0;
  box-shadow: 0 -8px 30px rgba(7, 28, 52, .12);
}
.site-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(8,44,88,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,44,88,.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef233c 0 27%, #ffb703 27% 42%, #1683e8 42% 100%);
}
.footer-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 20px 34px;
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}
.footer-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 5px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
a.footer-logo {
  display: block;
  width: 100%;
  text-decoration: none;
  line-height: 0;
}
a.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 118px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  filter: drop-shadow(0 5px 9px rgba(4, 38, 85, .16));
  transition: transform .25s ease, filter .25s ease;
}
a.footer-logo:hover img {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 13px rgba(4, 38, 85, .22));
}
.footer-brand-name {
  margin: 0;
  color: #082c58;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .2px;
}
.footer-tagline {
  font-size: 13.5px;
  color: #37536f;
  line-height: 1.65;
  margin: 0;
}
.footer-disclaimer-inline {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 3px;
  padding: 11px 12px;
  background: #fff6e2;
  border: 1px solid #f7d487;
  border-radius: 11px;
  color: #684b16;
}
.footer-disclaimer-inline > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border-radius: 8px;
  background: #f4b400;
  color: #332100;
  font-size: 11px;
  font-weight: 900;
}
.footer-disclaimer-inline p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.55;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.footer-col {
  min-width: 0;
  padding: 5px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.footer-col h4 {
  color: #082c58;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin: 0 0 13px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(8,44,88,.16);
  position: relative;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff3048, #ffb703);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 5px;
}
.footer-col ul li a {
  color: #244f78;
  font-size: 12.5px;
  text-decoration: none;
  transition: color .15s, transform .15s;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  line-height: 1.4;
}
.footer-col ul li a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5eb5ff;
  box-shadow: 0 0 0 3px rgba(94,181,255,.1);
  flex-shrink: 0;
}
.footer-col ul li a:hover {
  color: #c62828;
  transform: translateX(3px);
}
.footer-bottom {
  background: rgba(190, 211, 232, .58);
  border-top: 1px solid rgba(8,44,88,.12);
}
.footer-bottom-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom-inner p {
  font-size: 12px;
  color: #365d80;
  margin: 0;
}
.footer-bottom-inner p a {
  color: #082c58;
  font-weight: 800;
  text-decoration: none;
}
.footer-bottom-inner p a:hover {
  color: #c62828;
}
nav.footer-legal-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
nav.footer-legal-nav a {
  font-size: 12px;
  color: #365d80;
  text-decoration: none;
  transition: color .15s;
}
nav.footer-legal-nav a:hover {
  color: #c62828;
}

/* ── Footer responsive ──────────────────────── */
@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 18px 26px;
  }
  .footer-brand {
    max-width: 520px;
  }
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 36px;
    row-gap: 28px;
  }
}
@media (max-width: 480px) {
  .footer-main {
    padding: 28px 14px 22px;
  }
  .footer-brand {
    padding: 0;
  }
  a.footer-logo img {
    max-height: 96px;
  }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-col {
    padding: 0;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ══════════════════════════════════════════════════════
   DISCLAIMER NOTICE — brand neutral
   ══════════════════════════════════════════════════════ */
.schedule-page {
  overflow: hidden;
}
.schedule-page > .tit-mien {
  margin-bottom: 0;
}
.schedule-intro {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: #f6faff;
  border-bottom: 1px solid #dce8f5;
}
.schedule-intro-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e0efff;
  font-size: 21px;
}
.schedule-intro strong {
  color: #082c58;
  font-size: 16px;
}
.schedule-intro p {
  margin: 5px 0 0;
  color: #536b82;
  line-height: 1.6;
}
.schedule-today {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d3768, #145a9c);
  color: #fff;
  box-shadow: 0 8px 22px rgba(13,55,104,.18);
}
.schedule-today span {
  color: #bfe1ff;
  font-size: 12px;
  font-weight: 700;
}
.schedule-today h2 {
  margin: 4px 0 0;
  color: #fff !important;
  font-size: 18px;
}
.schedule-today-provinces {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.schedule-today-provinces a {
  padding: 8px 13px;
  border-radius: 999px;
  background: #fff;
  color: #0d3768 !important;
  font-weight: 800;
  text-decoration: none;
}
.schedule-today-provinces a:hover {
  background: #ffb703;
}
.schedule-week {
  padding: 2px 18px 18px;
}
.schedule-week > h2 {
  margin: 4px 0 13px;
  color: #082c58 !important;
  font-size: 18px;
}
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.schedule-day {
  display: grid;
  grid-template-columns: 105px 1fr;
  min-height: 68px;
  border: 1px solid #dce7f2;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.schedule-day.is-today {
  border-color: #5fa9ea;
  box-shadow: 0 0 0 2px rgba(95,169,234,.14);
}
.schedule-day-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 12px;
  background: #edf5fd;
  color: #0d3768;
}
.schedule-day.is-today .schedule-day-name {
  background: #dceeff;
}
.schedule-day-name span {
  color: #c62828;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.schedule-day-provinces {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px 14px;
}
.schedule-day-provinces a {
  color: #174e82 !important;
  font-weight: 700;
  text-decoration: none;
}
.schedule-day-provinces a:hover {
  color: #c62828 !important;
}
.schedule-note {
  margin: 0 18px 20px;
  padding: 11px 14px;
  border-left: 3px solid #f4b400;
  background: #fff8e7;
  color: #70521e;
  font-size: 12.5px;
  line-height: 1.55;
}
@media (max-width: 620px) {
  .schedule-intro {
    padding: 16px 14px;
  }
  .schedule-today {
    align-items: flex-start;
    flex-direction: column;
    margin: 14px;
  }
  .schedule-today-provinces {
    justify-content: flex-start;
  }
  .schedule-week {
    padding: 2px 14px 14px;
  }
  .schedule-grid {
    grid-template-columns: 1fr;
  }
  .schedule-note {
    margin: 0 14px 16px;
  }
}

.disclaimer-notice {
  border-left-color: var(--sbm-amber) !important;
  background: #fffbeb !important;
  color: #78350f !important;
}

/* ══════════════════════════════════════════════════════
   ALERT BAR — keep amber accent
   ══════════════════════════════════════════════════════ */
.alert {
  border-left-color: var(--sbm-amber) !important;
}

/* ══════════════════════════════════════════════════════
   BANNER TOP — if present
   ══════════════════════════════════════════════════════ */
#banner-top {
  border-radius: 8px;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════
   SEARCH PAGE styling
   ══════════════════════════════════════════════════════ */
.search-form input[type=search] {
  border: 2px solid var(--sbm-border-tint);
  border-radius: 6px 0 0 6px;
  padding: 8px 12px;
  outline: none;
  font-size: 14px;
}
.search-form input[type=search]:focus {
  border-color: var(--sbm-navy);
}
.search-form button,
.search-form input[type=submit] {
  background: var(--sbm-navy);
  color: #fff;
  border: none;
  border-radius: 0 6px 6px 0;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}
.search-form button:hover {
  background: var(--sbm-navy-dark);
}

/* ══════════════════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════════════════ */
.error404-wrap h1 { color: var(--sbm-navy); }
.error404-wrap a { color: var(--sbm-navy); transition: color .18s ease; }
.error404-wrap a:hover { color: var(--sbm-red); }

/* ══════════════════════════════════════════════════════
   STICKY HEADER support — ensure z-index on top
   ══════════════════════════════════════════════════════ */
header {
  z-index: 100;
}

/* ══════════════════════════════════════════════════════
   MOBILE BACKDROP — navy tint
   ══════════════════════════════════════════════════════ */
#menu-mobile-backdrop {
  background: rgba(6,26,64,.55) !important;
}
