/* =========================================================
   HUA XIA SCHOOLS — Main Stylesheet v1.1
   Brand: Soft Luxury Minimalism + Modern Enterprise
   Font: Poppins (300/400/500/600/700/900)
   Primary: #880000 | Dark Red: #660000 | Gold: #D4A017
   ========================================================= */

/* ── CSS Custom Properties ────────────────────────────── */
:root {
  /* Brand colors (overridden by hxs_dynamic_customizer_css()) */
  --hxs-primary:        #880000;
  --hxs-dark-red:       #660000;
  --hxs-primary-light:  #F9ECEA;
  --hxs-primary-mid:    rgba(136,0,0,0.12);
  --hxs-gold:           #D4A017;
  --hxs-gold-light:     #FDF3D7;

  /* Backgrounds */
  --hxs-bg:             #F7F5F2;
  --hxs-bg-alt:         #F0EDE8;
  --hxs-white:          #FFFFFF;
  --hxs-border:         #E8E2DA;

  /* Text */
  --hxs-heading:        #1A1A1A;
  --hxs-body:           #4A4A4A;
  --hxs-muted:          #7A7A7A;
  --hxs-light-text:     #9A9A9A;

  /* Typography */
  --hxs-font:           'Poppins', system-ui, -apple-system, sans-serif;
  --hxs-fs-xs:          11px;
  --hxs-fs-sm:          13px;
  --hxs-fs-base:        16px;
  --hxs-fs-md:          18px;
  --hxs-fs-lg:          22px;
  --hxs-fs-xl:          28px;
  --hxs-fs-2xl:         36px;
  --hxs-fs-3xl:         48px;
  --hxs-fs-4xl:         64px;
  --hxs-lh-base:        1.75;
  --hxs-lh-heading:     1.2;

  /* Layout */
  --hxs-container:      1200px;
  --hxs-gutter:         40px;
  --hxs-sidebar:        300px;
  --hxs-gap:            28px;

  /* Logo heights (overridden by hxs_dynamic_customizer_css()) */
  --hxs-header-logo-h:  48px;
  --hxs-footer-logo-h:  44px;

  /* Border radius */
  --hxs-r-sm:   6px;
  --hxs-r-md:   10px;
  --hxs-r-lg:   16px;
  --hxs-r-xl:   22px;
  --hxs-r-full: 9999px;

  /* Shadows */
  --hxs-shadow-xs:  0 1px 4px rgba(26,0,0,.06);
  --hxs-shadow-sm:  0 2px 10px rgba(26,0,0,.08);
  --hxs-shadow-md:  0 6px 24px rgba(26,0,0,.10);
  --hxs-shadow-lg:  0 16px 48px rgba(26,0,0,.12);
  --hxs-shadow-xl:  0 32px 80px rgba(26,0,0,.15);
  --hxs-shadow-card:0 2px 16px rgba(136,0,0,.07);
  --hxs-shadow-card-hover: 0 12px 40px rgba(136,0,0,.13);

  /* Motion */
  --hxs-ease:     cubic-bezier(0.25,0.46,0.45,0.94);
  --hxs-ease-out: cubic-bezier(0.0,0.0,0.2,1);
  --hxs-dur-fast: 160ms;
  --hxs-dur-base: 280ms;
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: var(--hxs-fs-base); }
body {
  font-family: var(--hxs-font);
  font-size: var(--hxs-fs-base);
  font-weight: 400;
  line-height: var(--hxs-lh-base);
  color: var(--hxs-body);
  background: var(--hxs-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--hxs-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--hxs-dur-fast);
}
a:hover { color: var(--hxs-dark-red); }
a:focus-visible { outline: 2px solid var(--hxs-primary); outline-offset: 3px; border-radius: var(--hxs-r-sm); }

/* ── Typography ───────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--hxs-font);
  color: var(--hxs-heading);
  line-height: var(--hxs-lh-heading);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem,5vw,var(--hxs-fs-4xl));   font-weight: 900; line-height: 1.1; }
h2 { font-size: clamp(1.6rem,3.5vw,var(--hxs-fs-3xl)); font-weight: 700; }
h3 { font-size: clamp(1.3rem,2.5vw,var(--hxs-fs-2xl)); font-weight: 700; }
h4 { font-size: clamp(1.1rem,2vw,var(--hxs-fs-xl));  font-weight: 600; }
h5 { font-size: var(--hxs-fs-lg); font-weight: 600; }
h6 { font-size: var(--hxs-fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .10em; color: var(--hxs-muted); }
p  { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
strong,b { font-weight: 700; color: var(--hxs-heading); }
small { font-size: var(--hxs-fs-sm); }

blockquote {
  border-left: 3px solid var(--hxs-primary);
  margin: 32px 0;
  padding: 16px 28px;
  background: var(--hxs-primary-light);
  border-radius: 0 var(--hxs-r-md) var(--hxs-r-md) 0;
  font-size: var(--hxs-fs-md);
  font-weight: 300;
  color: var(--hxs-heading);
  line-height: 1.7;
}
blockquote cite { display: block; margin-top: 8px; font-size: var(--hxs-fs-sm); font-style: normal; font-weight: 500; color: var(--hxs-muted); }

code,kbd { font-size: .875em; background: var(--hxs-bg); border: 1px solid var(--hxs-border); border-radius: var(--hxs-r-sm); padding: 2px 6px; }
pre { background: #1A1A1A; color: #e8e8e0; padding: 28px; border-radius: var(--hxs-r-md); overflow-x: auto; font-size: var(--hxs-fs-sm); line-height: 1.65; margin: 24px 0; }
pre code { background: none; border: none; padding: 0; color: inherit; }
hr { border: none; border-top: 1px solid var(--hxs-border); margin: 48px 0; }

.entry-content ul, .entry-content ol { margin: 12px 0 20px 24px; }
.entry-content li { margin-bottom: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--hxs-fs-sm); margin: 24px 0; border-radius: var(--hxs-r-md); overflow: hidden; box-shadow: var(--hxs-shadow-sm); }
.entry-content th { background: var(--hxs-primary); color: #fff; padding: 12px 16px; font-weight: 600; text-align: left; }
.entry-content td { padding: 10px 16px; border-bottom: 1px solid var(--hxs-border); }
.entry-content tbody tr:last-child td { border-bottom: none; }
.entry-content tbody tr:hover td { background: var(--hxs-bg); }

/* ── Layout ───────────────────────────────────────────── */
.hxs-container { max-width: var(--hxs-container); margin-inline: auto; padding-inline: var(--hxs-gutter); }
.hxs-content-area { display: grid; gap: 64px; padding-block: 20px;}
.hxs-layout-sidebar      { grid-template-columns: 1fr var(--hxs-sidebar); }
.hxs-layout-left-sidebar { grid-template-columns: var(--hxs-sidebar) 1fr; }
.hxs-layout-full,
.hxs-layout-wide         { grid-template-columns: 1fr; }
.hxs-single-post,
.hxs-page-content        { margin-inline: auto; }

/* ═══════════════════════════════════════════════════
   TIER 1 — INFO BAR
═══════════════════════════════════════════════════ */
.hxs-infobar {
  background: var(--hxs-primary);
  width: 100%;
  z-index: 101;
  position: relative;
}
.hxs-infobar-inner {
  max-width: var(--hxs-container);
  margin: 0 auto;
  padding: 0 var(--hxs-gutter);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hxs-infobar-left  { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.hxs-infobar-right { display: flex; align-items: center; }

.hxs-infobar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255,255,255,.90);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--hxs-dur-fast);
}
.hxs-infobar-item:hover { color: #fff; text-decoration: none; }
.hxs-infobar-icon { width: 13px; height: 13px; flex-shrink: 0; opacity: .85; }

.hxs-infobar-left .hxs-infobar-item + .hxs-infobar-item { position: relative; padding-left: 22px; }
.hxs-infobar-left .hxs-infobar-item + .hxs-infobar-item::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 13px; background: rgba(255,255,255,.22);
}

.hxs-infobar-nav { list-style: none; display: flex; align-items: center; gap: 0; }
.hxs-infobar-nav li + li { border-left: 1px solid rgba(255,255,255,.18); }
.hxs-infobar-nav a {
  display: inline-block;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,.80);
  text-decoration: none;
  line-height: 40px;
  white-space: nowrap;
  transition: color var(--hxs-dur-fast), background var(--hxs-dur-fast);
}
.hxs-infobar-nav a:hover { color: #fff; background: rgba(255,255,255,.10); text-decoration: none; }

/* ═══════════════════════════════════════════════════
   TIER 2 — MAIN HEADER
═══════════════════════════════════════════════════ */
.hxs-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--hxs-border);
  position: relative;
  z-index: 100;
  transition: box-shadow var(--hxs-dur-base) ease, background var(--hxs-dur-base) ease;
}
.sticky-header .hxs-header  { position: sticky; top: 0; }
.hxs-header.is-scrolled     { box-shadow: 0 2px 20px rgba(136,0,0,.08), 0 1px 6px rgba(0,0,0,.04); }
.hxs-header.is-hidden       { transform: translateY(-100%); }

/* CRITICAL FIX: .hxs-header creates its own stacking context
   (position + z-index). Because .hxs-nav-wrap (the mobile drawer)
   is a DESCENDANT of .hxs-header, its high z-index (999) is only
   compared against siblings INSIDE that local context — it cannot
   outrank the backdrop, which sits OUTSIDE the header at z-index 998
   in the root stacking context. The header's context as a whole only
   has z-index 100, so the backdrop's dark/blurred tint always painted
   on top of the entire header (including the open drawer), making
   the menu look washed-out and unclickable. Raising the header's
   z-index above the backdrop only while the drawer is open fixes
   this without affecting normal scroll behaviour. */
/* Header z-index stays at 100 — no boost needed because the
   mobile drawer is now outside the header in the DOM. */

/* Transparent header variant */
.transparent-header .hxs-header {
  position: fixed; top: 40px; left: 0; right: 0;
  background: transparent; border-bottom-color: transparent;
}
.transparent-header .hxs-header.is-scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--hxs-border);
  top: 0;
}

.hxs-header-inner { width: 100%; }
.hxs-header-container {
  max-width: var(--hxs-container);
  margin: 0 auto;
  padding: 0 var(--hxs-gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ── Logo ── */
.hxs-branding { flex-shrink: 0; }

.hxs-logo-link {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none;
}
.hxs-logo-link:focus-visible { outline: 2px solid var(--hxs-primary); border-radius: var(--hxs-r-sm); }
.hxs-logo-link:hover .hxs-logo-mark {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(136,0,0,.25);
}

/* Icon-only mark (fallback) */
.hxs-logo-mark {
  width: 40px; height: 40px;
  border-radius: var(--hxs-r-sm);
  overflow: hidden; flex-shrink: 0;
  transition: transform var(--hxs-dur-fast), box-shadow var(--hxs-dur-fast);
}
.hxs-logo-mark svg { width: 40px; height: 40px; display: block; }

/* Custom uploaded header logo */
.hxs-logo-img {
  display: block;
  height: var(--hxs-header-logo-h);
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

/* WordPress built-in logo */
.hxs-logo a img,
.hxs-logo img {
  display: block;
  height: var(--hxs-header-logo-h);
  width: auto;
  max-width: 280px;
}

.hxs-logo-text-wrap { display: flex; flex-direction: column; gap: 2px; }
.hxs-site-name {
  display: block;
  font-size: 17px; font-weight: 700;
  color: var(--hxs-primary); line-height: 1.15;
  letter-spacing: -.02em;
}
.hxs-site-tagline {
  display: block;
  font-size: 10px; font-weight: 500;
  color: var(--hxs-muted);
  letter-spacing: .09em; text-transform: uppercase; line-height: 1;
}

/* Drawer close button — hidden on desktop, shown inside mobile drawer */
.hxs-nav-drawer-close {
  display: none;
}

/* Mobile drawer hidden on ALL sizes by default —
   activated to display:flex inside @media (max-width:768px) */
.hxs-mobile-drawer {
  display: none;
}

/* ── Navigation (desktop) ──
   nav sits INSIDE the header flex row for correct
   inline layout. Mobile uses a separate .hxs-mobile-drawer
   element outside <header> to avoid stacking context issues. */
.hxs-main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hxs-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.hxs-menu > li { position: relative; }

/* Nav link base — NO underline indicator */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  font-family: var(--hxs-font);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--hxs-heading);
  text-decoration: none;
  border-radius: var(--hxs-r-md);
  white-space: nowrap;
  letter-spacing: .01em;
  transition: color var(--hxs-dur-fast), background var(--hxs-dur-fast);
}

/* Pill hover only — no underline on any state */
.nav-link:hover {
  color: var(--hxs-primary);
  background: var(--hxs-primary-light);
  text-decoration: none;
}

.current-menu-item > .nav-link,
.current-menu-ancestor > .nav-link {
  color: var(--hxs-primary);
  background: var(--hxs-primary-light);
  font-weight: 600;
}

/* Dropdown arrow */
.nav-dropdown-arrow {
  display: inline-flex; align-items: center;
  width: 14px; height: 14px; flex-shrink: 0;
  color: var(--hxs-muted);
  transition: transform var(--hxs-dur-fast), color var(--hxs-dur-fast);
}
.nav-dropdown-arrow svg { width: 14px; height: 14px; }
.menu-item-has-children.is-open > .nav-link .nav-dropdown-arrow,
.menu-item-has-children:hover > .nav-link .nav-dropdown-arrow {
  transform: rotate(180deg); color: var(--hxs-primary);
}

/* ── Dropdown ── */
.sub-menu {
  position: absolute;
  top: calc(100% + 6px); left: 0;
  min-width: 220px;
  background: #FFFFFF;
  border: 1px solid var(--hxs-border);
  border-top: 2px solid var(--hxs-primary);
  border-radius: 0 0 var(--hxs-r-lg) var(--hxs-r-lg);
  box-shadow: var(--hxs-shadow-lg);
  list-style: none; padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: top left;
  transition: opacity var(--hxs-dur-base) ease, transform var(--hxs-dur-base) ease, visibility 0s var(--hxs-dur-base);
  z-index: 200;
}
.menu-item-has-children:hover .sub-menu,
.menu-item-has-children.is-open .sub-menu {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}
.sub-menu li { position: relative; }
.sub-menu .nav-link {
  width: 100%; font-size: 13px; font-weight: 400;
  border-radius: var(--hxs-r-sm); padding: 9px 13px;
  color: var(--hxs-body);
}
.sub-menu .nav-link:hover { color: var(--hxs-primary); background: var(--hxs-primary-light); font-weight: 500; }
.sub-menu .current-menu-item > .nav-link {
  color: var(--hxs-primary); background: var(--hxs-primary-light);
  font-weight: 600; padding-left: 16px;
  border-left: 3px solid var(--hxs-primary);
  border-radius: 0 var(--hxs-r-sm) var(--hxs-r-sm) 0;
}

/* ── Header Actions ── */
.hxs-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.hxs-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: transparent;
  border: 1.5px solid var(--hxs-border);
  border-radius: var(--hxs-r-md);
  cursor: pointer; color: var(--hxs-body);
  flex-shrink: 0;
  transition: border-color var(--hxs-dur-fast), color var(--hxs-dur-fast), background var(--hxs-dur-fast);
}
.hxs-search-btn:hover  { border-color: var(--hxs-primary); color: var(--hxs-primary); background: var(--hxs-primary-light); }
.hxs-search-btn svg    { width: 17px; height: 17px; }
.hxs-search-btn:focus-visible { outline: 2px solid var(--hxs-primary); outline-offset: 2px; }

/* CTA Button */
.hxs-header-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px;
  background: var(--hxs-primary); color: #FFFFFF;
  font-family: var(--hxs-font);
  font-size: 13px; font-weight: 600;
  letter-spacing: .02em;
  border-radius: var(--hxs-r-md);
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: background var(--hxs-dur-fast), transform var(--hxs-dur-fast), box-shadow var(--hxs-dur-fast);
}
.hxs-header-cta:hover {
  background: var(--hxs-dark-red); color: #fff; text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(136,0,0,.30);
}

/* Hamburger */
.hxs-hamburger {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: transparent;
  border: 1.5px solid var(--hxs-border);
  border-radius: var(--hxs-r-md);
  cursor: pointer; color: var(--hxs-heading); flex-shrink: 0;
  transition: border-color var(--hxs-dur-fast), background var(--hxs-dur-fast);
}
.hxs-hamburger:hover { border-color: var(--hxs-primary); background: var(--hxs-primary-light); color: var(--hxs-primary); }
.hxs-hamburger svg { width: 22px; height: 22px; }
.hxs-hamburger-close { display: none; }
.hxs-hamburger.is-open .hxs-hamburger-icon  { display: none; }
.hxs-hamburger.is-open .hxs-hamburger-close { display: block; }

/* Mobile backdrop — sits between page content and the drawer.
   Drawer is at z-index:1000, backdrop at 999, page at default (auto).
   Both drawer and backdrop are siblings of <header> (not inside it),
   so z-index comparisons happen at the root stacking context with
   no parent stacking context interference. */
.hxs-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,0,0,.60);
  z-index: 999;
  cursor: pointer;
}
.mobile-nav-open .hxs-nav-backdrop { display: block; }

/* ── Search Overlay ── */
.hxs-search-overlay {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--hxs-border);
  box-shadow: var(--hxs-shadow-lg);
  padding: 24px 0; z-index: 150;
}
.hxs-search-overlay-inner {
  max-width: var(--hxs-container); margin: 0 auto;
  padding: 0 var(--hxs-gutter);
  display: flex; flex-direction: column; gap: 12px;
}
.hxs-search-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--hxs-muted);
}
.hxs-search-form { display: flex; align-items: center; gap: 12px; }
.hxs-search-input {
  flex: 1; padding: 14px 20px;
  border: 2px solid var(--hxs-border); border-radius: var(--hxs-r-lg);
  font-family: var(--hxs-font); font-size: 18px; font-weight: 300;
  color: var(--hxs-heading); background: var(--hxs-bg);
  outline: none; transition: border-color var(--hxs-dur-fast), background var(--hxs-dur-fast);
}
.hxs-search-input:focus { border-color: var(--hxs-primary); background: #fff; box-shadow: 0 0 0 4px rgba(136,0,0,.07); }
.hxs-search-input::placeholder { color: var(--hxs-light-text); }
.hxs-search-submit {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: var(--hxs-primary); border: none;
  border-radius: var(--hxs-r-lg); color: #fff; cursor: pointer; flex-shrink: 0;
  transition: background var(--hxs-dur-fast), transform var(--hxs-dur-fast);
}
.hxs-search-submit:hover { background: var(--hxs-dark-red); transform: scale(1.04); }
.hxs-search-submit svg { width: 20px; height: 20px; }
.hxs-search-close {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--hxs-border);
  border-radius: var(--hxs-r-md); padding: 7px 14px;
  font-family: var(--hxs-font); font-size: 12px; font-weight: 500;
  color: var(--hxs-muted); cursor: pointer;
  transition: border-color var(--hxs-dur-fast), color var(--hxs-dur-fast);
  align-self: flex-start;
}
.hxs-search-close:hover { border-color: var(--hxs-primary); color: var(--hxs-primary); }
.hxs-search-close svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════
   CONTENT LAYOUT
═══════════════════════════════════════════════════ */

/* Breadcrumbs */
.hxs-breadcrumbs { margin-bottom: 28px; }
.breadcrumb-list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  list-style: none; font-size: var(--hxs-fs-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; color: var(--hxs-muted);
}
.breadcrumb-list li::after { content: '/'; margin-left: 6px; opacity: .4; }
.breadcrumb-list li:last-child::after { display: none; }
.breadcrumb-list a { color: inherit; text-decoration: none; }
.breadcrumb-list a:hover { color: var(--hxs-primary); }

/* Page / archive headers */
.hxs-page-header, .hxs-archive-header {
  margin-bottom: 48px; padding-bottom: 24px;
  border-bottom: 1px solid var(--hxs-border);
}
.hxs-page-title {
  font-size: clamp(1.75rem,4vw,3rem); font-weight: 900;
  letter-spacing: -.02em; color: var(--hxs-heading);
}
.hxs-page-title span { color: var(--hxs-primary); }
.hxs-archive-desc { color: var(--hxs-body); font-weight: 300; margin-top: 8px; max-width: 640px; }
.hxs-result-count { font-size: var(--hxs-fs-sm); font-weight: 500; color: var(--hxs-muted); margin-top: 8px; }

/* ═══════════════════════════════════════════════════
   POST GRID + CARDS
═══════════════════════════════════════════════════ */
.hxs-posts-grid { display: grid; gap: var(--hxs-gap); }
.hxs-blog-grid  { grid-template-columns: repeat(3,1fr); }
.hxs-blog-list  { grid-template-columns: 1fr; }

.hxs-post-card {
  background: #FFFFFF;
  border: 1px solid var(--hxs-border);
  border-radius: var(--hxs-r-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--hxs-dur-base) var(--hxs-ease), box-shadow var(--hxs-dur-base) var(--hxs-ease), border-color var(--hxs-dur-base);
}
.hxs-post-card:hover { transform: translateY(-6px); box-shadow: var(--hxs-shadow-card-hover); border-color: transparent; }

.hxs-card-thumb { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.hxs-card-thumb .card-img,
.hxs-card-thumb .card-thumb-link { display: block; width: 100%; height: 100%; }
.hxs-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--hxs-dur-base) var(--hxs-ease); }
.hxs-post-card:hover .hxs-card-thumb img { transform: scale(1.05); }

.hxs-card-cat { position: absolute; top: 14px; left: 14px; }
.hxs-card-cat a {
  display: inline-block; background: var(--hxs-primary); color: #fff !important;
  font-size: var(--hxs-fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--hxs-r-full); text-decoration: none;
  transition: background var(--hxs-dur-fast);
}
.hxs-card-cat a:hover { background: var(--hxs-dark-red); }

.hxs-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; gap: 12px; }

.hxs-card-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--hxs-fs-xs); font-weight: 500;
  color: var(--hxs-muted); text-transform: uppercase; letter-spacing: .06em;
}
.hxs-meta-icon { width: 12px; height: 12px; flex-shrink: 0; }
.hxs-card-meta a { color: inherit; text-decoration: none; }
.hxs-card-meta a:hover { color: var(--hxs-primary); }
.hxs-meta-sep { color: var(--hxs-border); }

.hxs-card-title { font-size: clamp(1rem,1.5vw,1.25rem); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; margin: 0; }
.hxs-card-title a { color: var(--hxs-heading); text-decoration: none; transition: color var(--hxs-dur-fast); }
.hxs-card-title a:hover { color: var(--hxs-primary); }

.hxs-card-excerpt { font-size: var(--hxs-fs-sm); font-weight: 300; color: var(--hxs-body); line-height: 1.7; flex: 1; }

.hxs-card-footer { margin-top: auto; padding-top: 8px; }
.hxs-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--hxs-fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--hxs-primary); text-decoration: none;
  transition: gap var(--hxs-dur-fast), color var(--hxs-dur-fast);
}
.hxs-read-more:hover { gap: 10px; color: var(--hxs-dark-red); text-decoration: none; }
.hxs-arrow-icon { width: 14px; height: 14px; }

/* List layout card */
.hxs-blog-list .hxs-post-card { flex-direction: row; }
.hxs-blog-list .hxs-card-thumb { width: 280px; flex-shrink: 0; aspect-ratio: unset; }
.hxs-blog-list .hxs-card-thumb img { height: 100%; aspect-ratio: unset; }

/* ═══════════════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════════════ */
.hxs-single-header { margin-bottom: 28px; }

.hxs-single-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hxs-single-cats a {
  display: inline-block; background: var(--hxs-primary-light); color: var(--hxs-primary);
  font-size: var(--hxs-fs-xs); font-weight: 700; letter-spacing: .10em; text-transform: uppercase;
  padding: 4px 14px; border-radius: var(--hxs-r-full); text-decoration: none;
  border: 1px solid rgba(136,0,0,.15);
  transition: background var(--hxs-dur-fast), color var(--hxs-dur-fast);
}
.hxs-single-cats a:hover { background: var(--hxs-primary); color: #fff; }

.hxs-single-title {
  font-size: clamp(1.75rem,4vw,3rem); font-weight: 900; line-height: 1.1;
  letter-spacing: -.02em; color: var(--hxs-heading); margin-bottom: 14px;
}
.hxs-single-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: var(--hxs-fs-xs); font-weight: 500; color: var(--hxs-muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.hxs-single-meta a { color: inherit; text-decoration: none; }
.hxs-single-meta a:hover { color: var(--hxs-primary); }

.hxs-single-thumb { margin: 24px 0; border-radius: var(--hxs-r-xl); overflow: hidden; }
.hxs-single-thumb img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }

.hxs-single-content { font-size: var(--hxs-fs-md); font-weight: 300; line-height: 1.85; color: var(--hxs-body); }
.hxs-single-content h2,
.hxs-single-content h3,
.hxs-single-content h4 { margin-top: 48px; margin-bottom: 16px; }
.hxs-single-content p { margin-bottom: 16px; }
.hxs-single-content img { border-radius: var(--hxs-r-md); margin: 16px 0; }
.hxs-single-content .alignwide  { margin-inline: -60px; }
.hxs-single-content .alignfull  { margin-inline: calc(-1 * var(--hxs-gutter)); }

.hxs-single-footer { margin-top: 48px; }

.hxs-post-author-box {
  display: flex; align-items: center; gap: 16px;
  padding: 24px; background: var(--hxs-bg);
  border: 1px solid var(--hxs-border); border-radius: var(--hxs-r-xl); margin-top: 24px;
}
.hxs-author-avatar { width: 64px; height: 64px; border-radius: var(--hxs-r-full); flex-shrink: 0; border: 3px solid var(--hxs-primary-light); }
.hxs-author-label  { display: block; font-size: var(--hxs-fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .10em; color: var(--hxs-muted); margin-bottom: 4px; }
.hxs-author-name   { font-size: var(--hxs-fs-md); font-weight: 700; color: var(--hxs-heading); text-decoration: none; }
.hxs-author-name:hover { color: var(--hxs-primary); }

.hxs-post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.hxs-post-tags a {
  display: inline-block; padding: 4px 12px;
  background: var(--hxs-bg); border: 1px solid var(--hxs-border); border-radius: var(--hxs-r-full);
  font-size: var(--hxs-fs-xs); font-weight: 500; color: var(--hxs-body); text-decoration: none;
  transition: all var(--hxs-dur-fast);
}
.hxs-post-tags a:hover { background: var(--hxs-primary-light); border-color: var(--hxs-primary); color: var(--hxs-primary); }

/* Post navigation */
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: var(--hxs-gap); margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--hxs-border); }
.nav-links a { display: block; text-decoration: none; padding: 16px 20px; border: 1px solid var(--hxs-border); border-radius: var(--hxs-r-lg); transition: border-color var(--hxs-dur-fast), box-shadow var(--hxs-dur-fast), transform var(--hxs-dur-fast); }
.nav-links a:hover { border-color: var(--hxs-primary); box-shadow: var(--hxs-shadow-sm); transform: translateY(-2px); }
.nav-lbl { display: block; font-size: var(--hxs-fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .10em; color: var(--hxs-primary); margin-bottom: 6px; }
.nav-ttl { display: block; font-size: 1rem; font-weight: 700; color: var(--hxs-heading); line-height: 1.35; }
.nav-next { text-align: right; }

/* Pagination */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 16px; font-size: var(--hxs-fs-sm); font-weight: 600; color: var(--hxs-body); border: 1px solid var(--hxs-border); border-radius: var(--hxs-r-md); text-decoration: none; transition: all var(--hxs-dur-fast); }
.page-numbers:hover,
.page-numbers.current { background: var(--hxs-primary); color: #fff; border-color: var(--hxs-primary); text-decoration: none; }

/* ═══════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════ */
.hxs-sidebar-inner { display: flex; flex-direction: column; gap: 40px; }
.widget { background: #FFFFFF; border: 1px solid var(--hxs-border); border-radius: var(--hxs-r-xl); padding: 24px; }
.widget-title { font-size: var(--hxs-fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--hxs-muted); padding-bottom: 10px; margin-bottom: 16px; border-bottom: 2px solid var(--hxs-primary); position: relative; }
.widget-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 24px; height: 2px; background: var(--hxs-gold); }

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.hxs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; font-family: var(--hxs-font);
  font-size: var(--hxs-fs-sm); font-weight: 600; letter-spacing: .04em;
  border-radius: var(--hxs-r-lg); border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: all var(--hxs-dur-fast) var(--hxs-ease); line-height: 1;
}
.hxs-btn-primary { background: var(--hxs-primary); color: #fff; border-color: var(--hxs-primary); }
.hxs-btn-primary:hover { background: var(--hxs-dark-red); border-color: var(--hxs-dark-red); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(136,0,0,.30); text-decoration: none; }
.hxs-btn-outline { background: transparent; color: var(--hxs-primary); border-color: var(--hxs-primary); }
.hxs-btn-outline:hover { background: var(--hxs-primary); color: #fff; text-decoration: none; }
.hxs-btn-ghost { background: transparent; color: var(--hxs-body); border-color: var(--hxs-border); }
.hxs-btn-ghost:hover { background: var(--hxs-bg); border-color: var(--hxs-heading); color: var(--hxs-heading); text-decoration: none; }
.hxs-btn-lg { padding: 16px 40px; font-size: var(--hxs-fs-base); border-radius: var(--hxs-r-xl); }
.hxs-btn-sm { padding: 8px 18px; font-size: var(--hxs-fs-xs); border-radius: var(--hxs-r-md); }

/* ═══════════════════════════════════════════════════
   SEARCH + MISC
═══════════════════════════════════════════════════ */
.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; padding: 11px 16px; border: 1px solid var(--hxs-border); border-radius: var(--hxs-r-lg); font-family: var(--hxs-font); font-size: var(--hxs-fs-sm); outline: none; transition: border-color var(--hxs-dur-fast); }
.search-field:focus { border-color: var(--hxs-primary); }
.search-submit { background: var(--hxs-primary); color: #fff; border: none; border-radius: var(--hxs-r-lg); padding: 11px 22px; font-family: var(--hxs-font); font-size: var(--hxs-fs-sm); font-weight: 600; cursor: pointer; transition: background var(--hxs-dur-fast); }
.search-submit:hover { background: var(--hxs-dark-red); }

.hxs-no-results { text-align: center; padding: 80px 0; }
.hxs-no-results-icon  { font-size: 3rem; margin-bottom: 16px; }
.hxs-no-results-title { margin-bottom: 8px; }
.hxs-no-results-desc  { color: var(--hxs-muted); font-weight: 300; margin-bottom: 24px; }

/* 404 */
.hxs-404-wrap { display: flex; justify-content: center; align-items: center; min-height: 60vh; padding: 80px 0; }
.hxs-404-content { text-align: center; max-width: 520px; }
.hxs-404-code { font-size: 9rem; font-weight: 900; color: var(--hxs-primary-light); line-height: 1; margin-bottom: 16px; }
.hxs-404-title { font-size: clamp(1.5rem,3vw,2.5rem); font-weight: 900; margin-bottom: 8px; }
.hxs-404-desc  { font-weight: 300; color: var(--hxs-muted); margin-bottom: 24px; }
.hxs-404-actions { margin-bottom: 24px; }

/* Search result */
.hxs-search-result { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hxs-border); }
.hxs-search-thumb { width: 140px; flex-shrink: 0; border-radius: var(--hxs-r-md); overflow: hidden; }
.hxs-search-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hxs-search-title { font-size: var(--hxs-fs-md); font-weight: 700; margin-bottom: 6px; }
.hxs-search-title a { color: var(--hxs-heading); text-decoration: none; }
.hxs-search-title a:hover { color: var(--hxs-primary); }
.hxs-search-meta { font-size: var(--hxs-fs-xs); color: var(--hxs-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.hxs-search-excerpt { font-size: var(--hxs-fs-sm); font-weight: 300; color: var(--hxs-body); }

/* Comments */
.hxs-comments-area { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--hxs-border); }
.hxs-comments-title { margin-bottom: 24px; }
.hxs-comment-list { list-style: none; }
.hxs-comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--hxs-border); }
.hxs-reply-title { margin-bottom: 24px; }
.comment-form label { display: block; font-size: var(--hxs-fs-sm); font-weight: 600; margin-bottom: 4px; }
.comment-form input,
.comment-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--hxs-border); border-radius: var(--hxs-r-md); font-family: var(--hxs-font); font-size: var(--hxs-fs-sm); outline: none; transition: border-color var(--hxs-dur-fast); }
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--hxs-primary); }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .submit { background: var(--hxs-primary); color: #fff; border: none; padding: 12px 28px; border-radius: var(--hxs-r-lg); font-family: var(--hxs-font); font-weight: 600; cursor: pointer; font-size: var(--hxs-fs-sm); transition: background var(--hxs-dur-fast); }
.comment-form .submit:hover { background: var(--hxs-dark-red); }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.hxs-footer { background: #1a0000; color: rgba(255,255,255,.75); font-family: var(--hxs-font); }
.hxs-footer-inner { max-width: var(--hxs-container); margin: 0 auto; }

.hxs-footer-top {
  padding: 56px var(--hxs-gutter) 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Brand column */
.hxs-footer-brand-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }

.hxs-footer-logo-link { display: inline-flex; align-items: center; text-decoration: none; }

/* Custom footer logo upload */
.hxs-footer-custom-logo-img {
  display: block;
  height: var(--hxs-footer-logo-h);
  width: auto; max-width: 240px; object-fit: contain;
}

/* WP built-in logo — auto-invert for dark bg */
.hxs-footer-wp-logo img {
  height: var(--hxs-footer-logo-h);
  width: auto; max-width: 240px; display: block;
  filter: brightness(0) invert(1);
}

/* Fallback mark */
.hxs-footer-logo-mark { width: 44px; height: 44px; background: var(--hxs-primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background var(--hxs-dur-fast); }
.hxs-footer-logo-mark:hover { background: var(--hxs-dark-red); }
.hxs-footer-logo-mark svg { width: 26px; height: 26px; }

.hxs-footer-school-name { font-size: 16.8px; font-weight: 700; color: #fff; line-height: 1.2; }
.hxs-footer-school-name span { display: block; font-size: 11.6px; font-weight: 400; color: rgba(255,255,255,.45); letter-spacing: 1px; margin-top: 3px; }

.hxs-footer-gold-bar { width: 40px; height: 3px; background: var(--hxs-gold); border-radius: 2px; margin-bottom: 20px; }

.hxs-footer-tagline { font-size: 13.7px; color: rgba(255,255,255,.55); line-height: 1.75; font-weight: 300; margin-bottom: 24px; max-width: 320px; }

/* Contact list */
.hxs-footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.hxs-footer-contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.hxs-footer-contact-list li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; stroke: var(--hxs-gold); }
.hxs-footer-contact-list li span,
.hxs-footer-contact-list li a { font-size: 13.2px; color: rgba(255,255,255,.60); line-height: 1.6; font-weight: 300; text-decoration: none; transition: color var(--hxs-dur-fast); }
.hxs-footer-contact-list li a:hover { color: var(--hxs-gold); }

/* Column titles */
.hxs-footer-col-title {
  font-size: 12.6px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--hxs-gold); margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.hxs-footer-col-title::after { content: ''; flex: 1; height: 1px; background: rgba(212,160,23,.20); }

/* Quick links */
.hxs-footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.hxs-footer-links-col ul,
.hxs-footer-links-col .menu { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.hxs-footer-links li a,
.hxs-footer-links-col ul li a,
.hxs-footer-links-col .menu li a {
  font-size: 14.2px; color: rgba(255,255,255,.60); text-decoration: none; font-weight: 300;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color var(--hxs-dur-fast), gap var(--hxs-dur-base);
}
.hxs-footer-links li a::before,
.hxs-footer-links-col ul li a::before,
.hxs-footer-links-col .menu li a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgba(136,0,0,.80); flex-shrink: 0; transition: background var(--hxs-dur-fast); display: inline-block; }
.hxs-footer-links li a:hover,
.hxs-footer-links-col ul li a:hover,
.hxs-footer-links-col .menu li a:hover { color: #fff; gap: 14px; }
.hxs-footer-links li a:hover::before,
.hxs-footer-links-col ul li a:hover::before,
.hxs-footer-links-col .menu li a:hover::before { background: var(--hxs-gold); }

/* Bottom bar */
.hxs-footer-bottom-wrap { background: rgba(0,0,0,.30); width: 100%; }
.hxs-footer-bottom { max-width: var(--hxs-container); margin: 0 auto; padding: 18px var(--hxs-gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hxs-footer-copy { font-size: 12.6px; color: rgba(255,255,255,.35); font-weight: 300; }
.hxs-footer-copy span, .hxs-footer-copy a { color: rgba(212,160,23,.70); text-decoration: none; }
.hxs-footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.hxs-footer-bottom-links a,
.hxs-footer-legal-list li,
.hxs-footer-legal-list a { font-size: 12px; color: rgba(255,255,255,.30); text-decoration: none; list-style: none; display: inline; transition: color var(--hxs-dur-fast); }
.hxs-footer-legal-list { display: flex; gap: 20px; list-style: none; }
.hxs-footer-bottom-links a:hover,
.hxs-footer-legal-list a:hover { color: rgba(255,255,255,.70); }

/* ═══════════════════════════════════════════════════
   ELEMENTOR + BLOCK EDITOR COMPATIBILITY
═══════════════════════════════════════════════════ */
.elementor-section-boxed > .elementor-container { max-width: var(--hxs-container) !important; }
.e-con-boxed { max-width: var(--hxs-container) !important; }
.blank-canvas .hxs-header,
.blank-canvas .hxs-footer,
.blank-canvas .hxs-infobar { display: none; }
.elementor-page .hxs-main { padding: 0; }

.has-primary-color { color: var(--hxs-primary) !important; }
.has-primary-background-color { background: var(--hxs-primary) !important; }
.has-dark-red-color { color: var(--hxs-dark-red) !important; }
.has-gold-color { color: var(--hxs-gold) !important; }
.has-light-bg-background-color { background: var(--hxs-bg) !important; }

.wp-block-button .wp-block-button__link { background: var(--hxs-primary) !important; border-radius: var(--hxs-r-lg) !important; }
.wp-block-quote { border-left: 3px solid var(--hxs-primary); background: var(--hxs-primary-light); }
.wp-block-image img { border-radius: var(--hxs-r-md); }

/* Page display options (breadcrumb/title conditional) */
.hxs-page-entry-header:empty,
.hxs-single-header:empty { display: none; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  :root { --hxs-container: 960px; --hxs-gutter: 24px; --hxs-sidebar: 260px; }
  .hxs-blog-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 960px) {
  .hxs-layout-sidebar,
  .hxs-layout-left-sidebar { grid-template-columns: 1fr; }
  .hxs-sidebar-col { display: none; }
  .hxs-footer-top { grid-template-columns: 1fr 1fr; }
  .hxs-footer-brand-col { grid-column: 1 / -1; }
  .hxs-header-cta { display: none; }
}

@media (max-width: 768px) {
  :root { --hxs-gutter: 20px; }

  /* Info bar compact */
  .hxs-infobar-inner { padding: 0 20px; height: 38px; }
  .hxs-infobar-right { display: none; }
  .hxs-infobar-left { gap: 12px; }
  .hxs-infobar-item { font-size: 11.5px; }
  .hxs-infobar-left .hxs-infobar-item + .hxs-infobar-item { padding-left: 12px; }

  /* Main header */
  .hxs-header-container { height: 64px; padding: 0 20px; gap: 10px; }
  .hxs-hamburger { display: flex; }
  .hxs-header-cta { display: none; }

  /* Mobile drawer — positioned OUTSIDE <header> so it is
     not trapped in the header's stacking context. z-index:1000
     is compared directly at the root level and always wins
     over the backdrop (z-index:999) and the header (z-index:100). */
  .hxs-mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: min(320px, 88vw);
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: -4px 0 40px rgba(26,0,0,.20);
    border-left: 3px solid #880000;
    transition: right .28s cubic-bezier(0,0,.2,1);
  }
  .mobile-nav-open .hxs-mobile-drawer { right: 0; }

  /* Red top bar */
  .hxs-mobile-drawer::before {
    content: '';
    display: block;
    height: 60px;
    background: #880000;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 2;
  }

  /* Close button in red bar */
  .hxs-drawer-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 14px;
    align-self: flex-end;
    margin-top: -46px;   /* pull up into the red bar */
    margin-right: 14px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    z-index: 3;
    flex-shrink: 0;
    transition: background 0.18s;
  }
  .hxs-drawer-close-btn:hover { background: rgba(255,255,255,0.28); }
  .hxs-drawer-close-btn svg   { width: 18px; height: 18px; }

  /* Drawer nav content */
  .hxs-drawer-nav {
    padding: 8px 12px 32px;
    flex: 1;
  }

  /* Mobile drawer menu items */
  .hxs-drawer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }
  .hxs-drawer-menu > li { width: 100%; }

  /* Hide the desktop inline nav on mobile */
  .hxs-main-nav { display: none; }
  /* Drawer menu link styles */
  .hxs-drawer-menu .nav-link {
    display: flex;
    width: 100%; font-size: 15px; font-weight: 500;
    padding: 12px 14px; border-radius: var(--hxs-r-md);
    color: var(--hxs-heading);
    justify-content: space-between;
    text-decoration: none;
    transition: background .15s, color .15s;
  }
  .hxs-drawer-menu .nav-link:hover {
    background: var(--hxs-primary-light);
    color: var(--hxs-primary);
  }
  .hxs-drawer-menu .current-menu-item > .nav-link,
  .hxs-drawer-menu .current-menu-ancestor > .nav-link {
    background: var(--hxs-primary-light); color: var(--hxs-primary);
    border-left: 3px solid var(--hxs-primary);
    padding-left: 11px; border-radius: 0 var(--hxs-r-md) var(--hxs-r-md) 0;
    font-weight: 600;
  }

  /* Drawer accordion sub-menus */
  .hxs-drawer-menu .sub-menu {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: none; border-top: none;
    padding: 4px 0 4px 12px;
    background: var(--hxs-bg);
    border-radius: 0 0 var(--hxs-r-md) var(--hxs-r-md);
    display: none; margin: 4px 0 2px;
    min-width: unset;
  }
  .hxs-drawer-menu .menu-item-has-children.is-open > .sub-menu { display: block; }
  .hxs-drawer-menu .sub-menu .nav-link {
    padding: 9px 12px; font-size: 13px; color: var(--hxs-body);
    border-radius: var(--hxs-r-sm);
  }

  /* Blog */
  .hxs-blog-grid { grid-template-columns: 1fr; }
  .hxs-blog-list .hxs-post-card { flex-direction: column; }
  .hxs-blog-list .hxs-card-thumb { width: 100%; }

  /* Post nav */
  .post-navigation { grid-template-columns: 1fr; }

  /* Footer */
  .hxs-footer-top { grid-template-columns: 1fr; gap: 28px; padding: 36px 24px 32px; }
  .hxs-footer-brand-col { grid-column: auto; }
  .hxs-footer-bottom { flex-direction: column; text-align: center; padding: 14px 24px; gap: 8px; }
  .hxs-footer-bottom-links, .hxs-footer-legal-list { justify-content: center; }

  /* Search overlay */
  .hxs-search-overlay-inner { padding: 0 20px; }
  .hxs-search-input { font-size: 16px; padding: 12px 16px; }
}

@media (max-width: 480px) {
  :root { --hxs-gutter: 16px; }
  .hxs-header-container { height: 60px; }
  .hxs-infobar-left .hxs-infobar-item:nth-child(2) { display: none; }
  .hxs-infobar-left .hxs-infobar-item + .hxs-infobar-item::before { display: none; }
  .hxs-404-code { font-size: 6rem; }
}

/* ── Print ── */
@media print {
  .hxs-header, .hxs-footer, .hxs-infobar,
  .hxs-sidebar-col, .post-navigation,
  .hxs-comments-area, .hxs-breadcrumbs,
  .pagination { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── High contrast ── */
@media (prefers-contrast: high) {
  :root { --hxs-border: #000; --hxs-muted: #000; --hxs-light-text: #333; }
}

/* ═══════════════════════════════════════════════════
   UTILITY / INFO BAR — DROPDOWN SUPPORT
   ═══════════════════════════════════════════════════ */

/* Items with children need relative positioning */
.hxs-infobar-nav li.menu-item-has-children {
  position: relative;
}

/* The infobar link style (matches existing .hxs-infobar-nav a) */
.hxs-infobar-nav .hxs-infobar-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  line-height: 40px;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
  cursor: pointer;
}
.hxs-infobar-nav .hxs-infobar-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.10);
}
.hxs-infobar-nav .hxs-infobar-link .nav-dropdown-arrow {
  width: 10px;
  height: 10px;
  color: rgba(255,255,255,0.60);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.18s ease, color 0.18s;
}
.hxs-infobar-nav li.menu-item-has-children.is-open > .hxs-infobar-link .nav-dropdown-arrow,
.hxs-infobar-nav li.menu-item-has-children:hover > .hxs-infobar-link .nav-dropdown-arrow {
  transform: rotate(180deg);
  color: rgba(255,255,255,0.90);
}

/* Infobar sub-menu dropdown panel */
.hxs-infobar-nav .sub-menu.hxs-infobar-sub {
  position: absolute;
  top: 100%;
  right: 0;           /* right-align under the infobar item */
  left: auto;
  min-width: 200px;
  background: #1a0000;
  border: 1px solid rgba(255,255,255,0.10);
  border-top: 2px solid #880000;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.40);
  list-style: none;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0s 0.22s;
  z-index: 300;
}

/* Open state */
.hxs-infobar-nav li.menu-item-has-children:hover .sub-menu.hxs-infobar-sub,
.hxs-infobar-nav li.menu-item-has-children.is-open .sub-menu.hxs-infobar-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

/* Sub-menu items */
.hxs-infobar-sub li { position: relative; }
.hxs-infobar-sub .hxs-infobar-link {
  display: block;
  width: 100%;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  border-radius: 6px;
  line-height: 1.5;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.hxs-infobar-sub .hxs-infobar-link:hover {
  background: rgba(136,0,0,0.60);
  color: #fff;
}
.hxs-infobar-sub .current-menu-item > .hxs-infobar-link {
  color: #D4A017;
}

/* Divider between top-level infobar items with children */
.hxs-infobar-nav li.menu-item-has-children + li {
  border-left: 1px solid rgba(255,255,255,0.18);
}

/* ═══════════════════════════════════════════════════
   ELEMENTOR — MATCH SITE WIDTH AUTOMATICALLY
   Syncs Elementor section/container width to the
   same --hxs-container CSS variable used by the theme
   ═══════════════════════════════════════════════════ */

/* ── Elementor sections (classic) ── */
.elementor-section.elementor-section-boxed > .elementor-container,
.elementor-section.elementor-section-boxed .elementor-container {
  max-width: var(--hxs-container, 1200px) !important;
  width: 100% !important;
}

/* ── Elementor Flexbox containers (v3.6+) ── */
.e-con.e-con-boxed,
.e-con.e-con-boxed > .e-con-inner {
  max-width: var(--hxs-container, 1200px) !important;
  width: 100% !important;
}

/* ── Elementor global page content width ── */
.elementor-page-settings .elementor-section-wrap,
.elementor .elementor-inner {
  max-width: 100%;
}

/* ── Ensure padding matches theme gutter ── */
.elementor-section.elementor-section-boxed > .elementor-container {
  padding-left: var(--hxs-gutter, 40px) !important;
  padding-right: var(--hxs-gutter, 40px) !important;
}
.e-con.e-con-boxed > .e-con-inner {
  padding-left: var(--hxs-gutter, 40px) !important;
  padding-right: var(--hxs-gutter, 40px) !important;
}

/* ── Elementor editor preview also respects width ── */
.elementor-editor-active .elementor-section-boxed > .elementor-container {
  max-width: var(--hxs-container, 1200px) !important;
}

/* ── Responsive: gutter shrinks with breakpoints ── */
@media (max-width: 1100px) {
  .elementor-section.elementor-section-boxed > .elementor-container,
  .e-con.e-con-boxed > .e-con-inner {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}
@media (max-width: 768px) {
  .elementor-section.elementor-section-boxed > .elementor-container,
  .e-con.e-con-boxed > .e-con-inner {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
@media (max-width: 480px) {
  .elementor-section.elementor-section-boxed > .elementor-container,
  .e-con.e-con-boxed > .e-con-inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
