/**
 * tpl_aura — base template styles
 * Minimal reset + structural layout only. No design opinions.
 * All block/content styling lives in blocks.css (com_aurabuilder).
 */

/* ── CSS custom property fallbacks ─────────────────────────────────────── */
:root {
  --vb-color1:          #6366f1;
  --vb-color2:          #8b5cf6;
  --vb-color3:          #06b6d4;
  --vb-black:           #1e293b;
  --vb-text:            #374151;
  --vb-bg:              #ffffff;
  --vb-btt-color:       #6366f1;
  --vb-header-h:        64px;
  --vb-container-width: 1420px;
  --vb-font-heading:    system-ui, -apple-system, sans-serif;
  --vb-font-body:       system-ui, -apple-system, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--vb-font-body);
  color: var(--vb-text);
  background: var(--vb-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--vb-font-heading);
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--vb-black);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.625rem, 3vw, 2.375rem); font-weight: 700; }
h3 { font-size: clamp(1.35rem, 2.3vw, 1.85rem); font-weight: 600; }
h4 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vb-color1); }
a:hover { text-decoration: underline; }

/* ── Topbar ─────────────────────────────────────────────────────────────── */
.vb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 24px;
  background: var(--vb-black);
  color: #fff;
  font-size: 13px;
  gap: 12px;
}
.vb-topbar a { color: inherit; text-decoration: none; }
.vb-topbar a:hover { opacity: 0.8; }
.vb-topbar-left, .vb-topbar-right { display: flex; align-items: center; gap: 12px; }

/* ── Topbar contact items ───────────────────────────────────────────────── */
.vb-topbar-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.vb-topbar-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.vb-topbar-contact-item:hover { opacity: 0.8; text-decoration: none; }
.vb-topbar-nav .vb-nav-list { gap: 0; }
.vb-topbar-nav .vb-nav-link { font-size: 12px; padding: 4px 10px; border-radius: 4px; }

/* ── Social icons (template) ────────────────────────────────────────────── */
.vb-tpl-socials { display: flex; align-items: center; gap: 10px; }
.vb-tpl-socials a {
  color: inherit; text-decoration: none; font-size: 15px;
  transition: opacity 0.15s;
}
.vb-tpl-socials a:hover { opacity: 0.7; text-decoration: none; }
.vb-tpl-socials a::before { content: none !important; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.vb-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  min-height: var(--vb-header-h); /* min-height so large logos expand the bar */
  background: transparent;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  position: relative;
  z-index: 200;
}

/* Contained header: strip outer padding, let vb-container handle it */
.vb-header.is-contained { padding-left: 0; padding-right: 0; }
/* vb-header-inner = vb-container reset as a flex row for the header */
.vb-header-inner {
  max-width: var(--vb-container-width, 1420px);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
}
/* When the header is NOT contained, wrap page body content in .vb-container */
.vb-main-content > .vb-container,
.vb-position-above-content > .vb-container,
.vb-position-below-content > .vb-container {
  padding-top: 0;
  padding-bottom: 0;
}

/* Nav alignment — defined here but overriding rules are repeated after layout variants below */

/* Mobile overlay backdrop (drawer + fullscreen) */
.vb-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 900;
  backdrop-filter: blur(2px);
}
.vb-mobile-overlay.is-visible { display: block; }
.vb-header.is-sticky {
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}
.vb-header.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 500;
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}
.vb-header-brand a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.vb-header-brand img { display: block; }
.vb-site-name { font-weight: 700; font-size: 18px; color: var(--vb-black); }
.vb-navbar { flex: 0 0 auto; }

/* ── Mobile toggle ──────────────────────────────────────────────────────── */
.vb-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}
.vb-mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--vb-black); border-radius: 2px; transition: all 0.2s; }
@media (max-width: 768px) {
  .vb-mobile-toggle { display: flex; }
  .vb-navbar { display: none; }
  .vb-navbar.is-open { display: block; position: absolute; top: var(--vb-header-h); left: 0; right: 0; background: var(--vb-bg); border-top: 1px solid rgba(0,0,0,0.07); padding: 12px 24px; z-index: 400; }

  /* Inline nav — stack items vertically on mobile */
  .vb-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .vb-nav-link { border-radius: 6px; }

  /* Inline dropdown — position statically inside the mobile nav */
  .vb-nav-item.has-dropdown .vb-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    display: none;
  }
  .vb-nav-item.has-dropdown.is-open > .vb-dropdown { display: block; }
  .vb-nav-item.has-dropdown:hover > .vb-dropdown { display: none; }
  .vb-nav-item.has-dropdown.is-open > .vb-dropdown { display: block !important; }
}

/* ── Off-canvas ─────────────────────────────────────────────────────────── */
.vb-offcanvas {
  position: fixed; top: 0; right: -320px; width: 320px; height: 100vh;
  background: var(--vb-bg); z-index: 1000; box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  transition: right 0.3s cubic-bezier(.4,0,.2,1); overflow-y: auto;
}
.vb-offcanvas.is-open { right: 0; }
.vb-offcanvas-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 18px; cursor: pointer; color: var(--vb-black);
}
.vb-offcanvas-content { padding: 56px 24px 24px; }
.vb-offcanvas-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 999;
}
.vb-offcanvas-overlay.is-visible { display: block; }

/* ── Mobile menu: Drawer (slides in from right) ─────────────────────────── */
[data-mobile-menu="drawer"] .vb-navbar {
  position: fixed !important;
  top: 0;
  right: -340px;
  width: 300px;
  height: 100vh;
  background: var(--vb-bg);
  z-index: 1000;
  box-shadow: -6px 0 32px rgba(0,0,0,0.14);
  overflow-y: auto;
  display: flex !important;
  flex-direction: column;
  padding: 20px 16px 32px;
  gap: 4px;
  transition: right 0.3s cubic-bezier(.4,0,.2,1);
}
[data-mobile-menu="drawer"] .vb-navbar.is-open { right: 0; }
[data-mobile-menu="drawer"] .vb-navbar .vb-menu {
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
}
[data-mobile-menu="drawer"] .vb-navbar .vb-menu__item { width: 100%; flex-wrap: wrap; }
[data-mobile-menu="drawer"] .vb-navbar .vb-menu__link { flex: 1; padding: 10px 14px; border-radius: 7px; font-size: 15px; }
[data-mobile-menu="drawer"] .vb-navbar .vb-menu__toggle { width: 36px; height: 36px; }
[data-mobile-menu="drawer"] .vb-navbar .vb-menu__sub {
  position: static; box-shadow: none; border: none;
  border-left: 3px solid var(--vb-color1);
  background: rgba(0,0,0,0.03); border-radius: 0 0 6px 6px;
  padding: 4px 0 4px 8px; margin: 2px 0 4px; width: 100%; animation: none;
  display: none;
}
[data-mobile-menu="drawer"] .vb-navbar .vb-menu__item.is-open > .vb-menu__sub { display: block; }
[data-mobile-menu="drawer"] .vb-navbar .vb-menu__item.has-children:hover > .vb-menu__sub { display: none; }
/* Drawer close button (injected by JS) */
.vb-mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 4px 0 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.vb-mobile-nav-close button {
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: inherit; padding: 6px 8px; border-radius: 6px;
}
.vb-mobile-nav-close button:hover { background: rgba(0,0,0,0.06); }

/* ── Mobile menu: Fullscreen overlay ────────────────────────────────────── */
[data-mobile-menu="fullscreen"] .vb-navbar {
  position: fixed !important;
  inset: 0;
  background: var(--vb-bg);
  z-index: 1000;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
[data-mobile-menu="fullscreen"] .vb-navbar.is-open {
  opacity: 1;
  pointer-events: auto;
}
[data-mobile-menu="fullscreen"] .vb-navbar .vb-menu {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 380px;
}
[data-mobile-menu="fullscreen"] .vb-navbar .vb-menu__item { width: 100%; flex-wrap: wrap; justify-content: center; }
[data-mobile-menu="fullscreen"] .vb-navbar .vb-menu__link { flex: 1; font-size: 22px; padding: 12px 20px; text-align: center; border-radius: 10px; }
[data-mobile-menu="fullscreen"] .vb-navbar .vb-menu__toggle { width: 40px; height: 40px; font-size: 13px; }
[data-mobile-menu="fullscreen"] .vb-navbar .vb-menu__sub {
  position: static; box-shadow: none; border: none;
  background: rgba(0,0,0,0.04); border-radius: 8px;
  padding: 4px 8px; margin: 2px 0 6px; width: 100%; animation: none;
  display: none;
}
[data-mobile-menu="fullscreen"] .vb-navbar .vb-menu__item.is-open > .vb-menu__sub { display: block; }
[data-mobile-menu="fullscreen"] .vb-navbar .vb-menu__item.has-children:hover > .vb-menu__sub { display: none; }
[data-mobile-menu="fullscreen"] .vb-navbar .vb-menu__sub .vb-menu__link { font-size: 16px; text-align: left; }
/* Fullscreen close button */
.vb-mobile-nav-close-fs {
  position: absolute;
  top: 20px;
  right: 24px;
}
.vb-mobile-nav-close-fs button {
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: inherit; padding: 8px; border-radius: 8px;
}
.vb-mobile-nav-close-fs button:hover { background: rgba(0,0,0,0.06); }

/* ── Positions: banner, above/below content ─────────────────────────────── */
.vb-position-banner,
.vb-position-above-content,
.vb-position-below-content { width: 100%; }

/* ── Main content row ──────────────────────────────────────────────────── */
.vb-main-row {
  flex: 1;
  display: flex;
  width: 100%;
  min-height: 1px;
}
.vb-main-content { flex: 1; min-width: 0; }
.vb-sidebar { flex-shrink: 0; width: 260px; }
@media (max-width: 900px) {
  .vb-main-row { flex-wrap: wrap; }
  .vb-sidebar { width: 100%; }
}

/* ── Footer grid ────────────────────────────────────────────────────────── */
.vb-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding: 48px 24px;
  color: #e2e8f0;
}

/* ── Footer bar ─────────────────────────────────────────────────────────── */
.vb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
}
.vb-footer a { color: inherit; }
.vb-footer-copy { margin: 0; }
.vb-footer-socials a { color: #94a3b8; }
.vb-footer-socials a:hover { color: #fff; }

/* ── Module section (mod_aurabuilder_section) ── */
.vb-module-section {
  width: 100%;
  display: block;
  position: relative;
}

/* When a full-width section module is placed in the footer, strip all padding
   so the section renders fully edge-to-edge (container inside the section handles spacing) */
.vb-footer:has(.vb-module-section) {
  padding: 0;
}

/* ── Module chrome ──────────────────────────────────────────────────────── */
.vb-module-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.vb-module-card-title { padding: 14px 16px; font-weight: 600; border-bottom: 1px solid #f1f5f9; }
.vb-module-card-content { padding: 16px; }
.vb-module-titled .vb-module-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }

/* ── Back to top ────────────────────────────────────────────────────────── */
.vb-btt {
  position: fixed; bottom: 24px; right: 24px; z-index: 600;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  color: #fff; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.vb-btt.is-visible { opacity: 1; transform: translateY(0); }
.vb-btt:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.22); }

/* ── Preloader ──────────────────────────────────────────────────────────── */
#vb-preloader {
  position: fixed; inset: 0; background: var(--vb-bg); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s;
}
#vb-preloader.is-done { opacity: 0; pointer-events: none; }
.vb-preloader-spinner {
  width: 40px; height: 40px; border: 3px solid #e2e8f0;
  border-top-color: var(--vb-color1); border-radius: 50%;
  animation: vb-spin 0.7s linear infinite;
}
@keyframes vb-spin { to { transform: rotate(360deg); } }

/* ── Error page ─────────────────────────────────────────────────────────── */
.vb-error-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.vb-error-container { text-align: center; padding: 40px 24px; max-width: 480px; }
.vb-error-code { font-size: 80px; font-weight: 800; color: var(--vb-color1); line-height: 1; }
.vb-error-title { font-size: 24px; margin: 12px 0 8px; color: var(--vb-black); }
.vb-error-message { color: #64748b; margin-bottom: 24px; }
.vb-error-home { display: inline-flex; align-items: center; gap: 6px; color: var(--vb-color1); font-weight: 600; text-decoration: none; }

/* ── Offline page ───────────────────────────────────────────────────────── */
.vb-offline-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.vb-offline-container { text-align: center; padding: 40px 24px; max-width: 480px; }
.vb-offline-logo { max-width: 160px; margin: 0 auto 24px; }

/* ── Accessibility ──────────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--vb-color1); outline-offset: 2px; }

/* ── Inline nav list (rendered from header_menu param) ──────────────────── */
.vb-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.vb-nav-item { display: block; position: relative; }
.vb-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s, opacity 0.15s;
}
.vb-nav-link:hover { background: rgba(0,0,0,0.06); text-decoration: none; opacity: 1; }

/* Dropdown caret icon */
.vb-nav-caret {
  width: 10px;
  height: 6px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.vb-nav-item.has-dropdown:hover > .vb-nav-link .vb-nav-caret,
.vb-nav-item.has-dropdown:focus-within > .vb-nav-link .vb-nav-caret {
  transform: rotate(180deg);
}

/* Dropdown panel */
.vb-dropdown {
  display: none;
  position: absolute;
  top: 100% ;
  left: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  z-index: 1100;
  animation: vbDropIn 0.15s ease;
}

.vb-nav-item.has-dropdown:hover > .vb-dropdown,
.vb-nav-item.has-dropdown:focus-within > .vb-dropdown {
  display: block;
}
.vb-nav-child { display: block; }
.vb-nav-child-link {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 0;
  color: #374151;
}
.vb-nav-child-link:hover { background: rgba(0,0,0,0.04); color: var(--vb-color1); }

/* ===================================================================
   VB Menu — mod_menu override (tpl_aura/html/mod_menu)
   Desktop: horizontal flex with hover dropdowns
   Mobile: stacked accordion (toggled by template.js)
=================================================================== */

/* Strip any Joomla default list chrome that might bleed in */
.vb-navbar .mod-menu,
.vb-navbar ul { list-style: none; margin: 0; padding: 0; }

/* Top-level list */
.vb-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

/* Items */
.vb-menu__item {
  position: relative;
  list-style: none;
  display: flex;
  align-items: center;
}
.vb-menu__item.is-separator { padding: 0 4px; align-items: center; }

/* Links */
.vb-menu__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  border-radius: 7px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  line-height: 1.3;
}
.vb-menu__link:hover {
  background: rgba(0,0,0,0.06);
  color: var(--vb-color1);
  text-decoration: none;
}
.vb-menu__item.is-active  > .vb-menu__link { color: var(--vb-color1); font-weight: 600; }
.vb-menu__item.is-current > .vb-menu__link {
  color: var(--vb-color1);
  font-weight: 600;
  background: color-mix(in srgb, var(--vb-color1) 10%, transparent);
}

/* Separator */
.vb-menu__separator {
  display: block;
  width: 1px;
  height: 18px;
  background: rgba(0,0,0,0.14);
}
.vb-menu__separator-label {
  display: block;
  padding: 6px 13px 2px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.45;
}

/* Heading */
.vb-menu__heading {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  opacity: 0.55;
  white-space: nowrap;
  pointer-events: none;
}

/* ── Dropdown toggle button ──────────────────────────────────────────── */
.vb-menu__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: -4px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  border-radius: 5px;
  color: inherit;
  flex-shrink: 0;
  transition: background 0.15s;
}
.vb-menu__toggle:hover { background: rgba(0,0,0,0.07); }
.vb-menu__toggle i {
  font-size: 9px;
  transition: transform 0.2s;
  pointer-events: none;
}
.vb-menu__item.is-open > .vb-menu__toggle i,
.vb-menu__item.has-children:focus-within > .vb-menu__toggle i { transform: rotate(180deg); }

/* ── Dropdown panel ──────────────────────────────────────────────────── */
.vb-menu__sub {
  display: none;
  position: absolute;
  top: 100% ;
  left: 0;
  min-width: 210px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--vb-bg, #fff);
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.12);
  z-index: 700;
  animation: vb-menu-fade .15s ease;
}
@keyframes vb-menu-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Show on hover (desktop) or JS-toggled .is-open (mobile) */
.vb-menu__item.has-children:hover     > .vb-menu__sub,
.vb-menu__item.has-children:focus-within > .vb-menu__sub,
.vb-menu__item.is-open               > .vb-menu__sub { display: block; }

.vb-menu__sub .vb-menu__item { display: flex; width: 100%; }
.vb-menu__sub .vb-menu__link {
  flex: 1;
  border-radius: 6px;
  font-size: 13.5px;
  padding: 7px 12px;
}

/* Nested sub-menu (3rd level) opens to the right */
.vb-menu__sub--nested {
  top: -6px;
  left: calc(100% + 4px);
}

/* ===================================================================
   Mobile nav (≤768px) — stacked accordion
=================================================================== */
@media (max-width: 768px) {
  .vb-navbar.is-open {
    padding: 10px 16px 16px;
  }
  .vb-navbar.is-open .vb-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 1px;
  }
  .vb-navbar.is-open .vb-menu__item {
    width: 100%;
    flex-wrap: wrap;
  }
  .vb-navbar.is-open .vb-menu__item.is-separator { display: none; }
  .vb-navbar.is-open .vb-menu__link {
    flex: 1;
    padding: 10px 14px;
    border-radius: 7px;
  }
  .vb-navbar.is-open .vb-menu__toggle {
    width: 36px;
    height: 36px;
    margin-left: 2px;
  }
  /* Sub-menu: accordion (no absolute positioning) */
  .vb-navbar.is-open .vb-menu__sub,
  .vb-navbar.is-open .vb-menu__sub--nested {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--vb-color1);
    border-radius: 0 0 6px 6px;
    background: rgba(0,0,0,0.03);
    padding: 4px 0 4px 8px;
    margin: 2px 0 4px;
    width: 100%;
    animation: none;
  }
  .vb-navbar.is-open .vb-menu__item.is-open > .vb-menu__sub,
  .vb-navbar.is-open .vb-menu__item.has-children:focus-within > .vb-menu__sub { display: block; }
  /* Disable CSS hover dropdowns on mobile */
  .vb-navbar.is-open .vb-menu__item.has-children:hover > .vb-menu__sub { display: none; }
  .vb-navbar.is-open .vb-menu__item.has-children.is-open > .vb-menu__sub,
  .vb-navbar.is-open .vb-menu__item.has-children:focus-within > .vb-menu__sub { display: block; }
}

/* ── Header layout variants ─────────────────────────────────────────────── */

/* layout-logo-nav — brand and nav are auto-sized; justify-content/nav-align control placement */
.vb-header.layout-logo-nav .vb-navbar,
.vb-header.layout-logo-nav .vb-header-nav-wrap { flex: 0 0 auto; }

/* logo-align — position the brand within the header flex row */
.vb-header.logo-align-left .vb-header-brand  { flex: 0 0 auto; margin-right: 0; }
.vb-header.logo-align-right .vb-header-brand { flex: 0 0 auto; order: 9; margin-left: 0; }
.vb-header.logo-align-center .vb-header-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
}

/* layout-centered — centered brand above full-width nav bar */
.vb-header.layout-centered {
  flex-direction: column;
  height: auto;
  padding: 16px 24px 0;
  gap: 0;
}
.vb-header.layout-centered .vb-header-centered-brand {
  display: flex;
  justify-content: center;
  padding-bottom: 12px;
}
.vb-header.layout-centered .vb-header-centered-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 8px 0;
}
.vb-header.layout-centered .vb-navbar {
  flex: none;
  width: 100%;
  display: flex;
  justify-content: center;
}
.vb-header.layout-centered .vb-nav-list { justify-content: center; }

/* layout-logo-nav-cta — logo left, nav centre, CTA button right */
.vb-header.layout-logo-nav-cta .vb-header-nav-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
}
.vb-header.layout-logo-nav-cta .vb-navbar {
  flex: none;
  display: flex;
  justify-content: center;
}
.vb-header-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
}
.vb-header-cta:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }

/* layout-minimal — brand only, mobile toggle always visible */
.vb-header.layout-minimal .vb-navbar { display: none; }

/* ── Nav alignment overrides — placed after all layout rules so they always win ─ */
.vb-header.nav-align-left  .vb-navbar,
.vb-header.nav-align-left  .vb-header-nav-wrap { flex: 0 0 auto; margin-right: auto; margin-left: 0; }
.vb-header.nav-align-left .vb-menu,
.vb-header.nav-align-left .vb-nav-list { justify-content: flex-start; }
.vb-header.nav-align-center .vb-navbar,
.vb-header.nav-align-center .vb-header-nav-wrap { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; }
.vb-header.nav-align-center .vb-menu,
.vb-header.nav-align-center .vb-nav-list { justify-content: center; }
.vb-header.nav-align-right .vb-navbar,
.vb-header.nav-align-right .vb-header-nav-wrap { flex: 0 0 auto; margin-left: auto; margin-right: 0; }
.vb-header.nav-align-right .vb-menu,
.vb-header.nav-align-right .vb-nav-list { justify-content: flex-end; }
/* Inner variants (contained header) */
.vb-header-inner.nav-align-left  .vb-navbar,
.vb-header-inner.nav-align-left  .vb-header-nav-wrap { flex: 0 0 auto; margin-right: auto; margin-left: 0; }
.vb-header-inner.nav-align-left .vb-menu,
.vb-header-inner.nav-align-left .vb-nav-list { justify-content: flex-start; }
.vb-header-inner.nav-align-center .vb-navbar,
.vb-header-inner.nav-align-center .vb-header-nav-wrap { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; }
.vb-header-inner.nav-align-center .vb-menu,
.vb-header-inner.nav-align-center .vb-nav-list { justify-content: center; }
.vb-header-inner.nav-align-right .vb-navbar,
.vb-header-inner.nav-align-right .vb-header-nav-wrap { flex: 0 0 auto; margin-left: auto; margin-right: 0; }
.vb-header-inner.nav-align-right .vb-menu,
.vb-header-inner.nav-align-right .vb-nav-list { justify-content: flex-end; }

/* ── Breadcrumbs ─────────────────────────────────────────────────────────── */
.vb-breadcrumbs {
  padding: 10px 0;
}
.vb-breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  font-size: .8rem;
}
.vb-breadcrumbs-item {
  display: flex;
  align-items: center;
  gap: 2px;
}
.vb-breadcrumbs-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--vb-muted, #6b7280);
  text-decoration: none;
  font-weight: 500;
  padding: 3px 6px;
  border-radius: 5px;
  transition: color .15s, background .15s;
}
.vb-breadcrumbs-link:hover {
  color: var(--vb-color1, #6366f1);
  background: rgba(99,102,241,.07);
  text-decoration: none;
}
.vb-breadcrumbs-home-icon {
  flex-shrink: 0;
  opacity: .7;
}
.vb-breadcrumbs-sep {
  display: flex;
  align-items: center;
  color: var(--vb-muted, #d1d5db);
  margin: 0 1px;
}
.vb-breadcrumbs-current {
  color: var(--vb-text, #1e293b);
  font-weight: 600;
  padding: 3px 6px;
}

/* Responsive: collapse nav on mobile for all layouts */
@media (max-width: 768px) {
  .vb-header.layout-centered {
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
    padding: 0 24px;
  }
  .vb-header.layout-centered .vb-header-centered-nav { display: none; }
  .vb-header.layout-centered .vb-header-centered-brand { padding: 0; height: var(--vb-header-h); align-items: center; }
  .vb-header.layout-logo-nav-cta .vb-header-nav-wrap { display: none; }
  .vb-header.layout-logo-nav-cta .vb-header-cta { display: none; }
}

/* ── Joomla Frontend Editing ────────────────────────────────────────────── */
.jmodedit {
  display: block;
  align-items: center;
  border-radius: 6px;
  background: #0ec20e40 !important;
  border: 2px solid #54c554;
  position: absolute;
  text-align: center;
  padding: 0px 7px;
  top: -15px;
  z-index: 9999;
  left: -30px;
}
.jmodedit:hover {
  background: var(--vb-color1, #6366f1);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}
.jmodedit .icon-edit {
  font-size: 14px;
  line-height: 1;
}
.jmodedit .visually-hidden {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  color: white;
}

/* Tooltip styling */
[role="tooltip"] {
  position: absolute;
  z-index: 9999;
  padding: 8px 12px;
  background: var(--vb-black, #1e293b);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.jmodedit:hover + [role="tooltip"],
.jmodedit:focus + [role="tooltip"] {
  opacity: 1;
}

/* ── System messages (jdoc:include type="message") ──────────────────────── */
#system-message-container {
  padding: 0 16px;
}

#system-message-container:empty {
  display: none;
}

.system-message,
#system-message {
  max-width: 600px;
  margin: 16px auto;
}

.system-message .alert,
#system-message .alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .875rem;
  line-height: 1.5;
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.system-message .alert-success,
#system-message .alert-success {
  background: #f0fdf4;
  color: #15803d;
  border-left: 3px solid #22c55e;
}

.system-message .alert-warning,
#system-message .alert-warning {
  background: #fffbeb;
  color: #92400e;
  border-left: 3px solid #f59e0b;
}

.system-message .alert-danger,
.system-message .alert-error,
#system-message .alert-danger,
#system-message .alert-error {
  background: #fef2f2;
  color: #991b1b;
  border-left: 3px solid #ef4444;
}

.system-message .alert-info,
#system-message .alert-info {
  background: #eff6ff;
  color: #1e40af;
  border-left: 3px solid #3b82f6;
}

.system-message .alert h4,
#system-message .alert h4 {
  font-size: .875rem;
  font-weight: 700;
  margin: 0 0 2px;
}

.system-message .alert .btn-close,
#system-message .alert .btn-close {
  margin-left: auto;
  opacity: .5;
  flex-shrink: 0;
}

.system-message .alert .btn-close:hover,
#system-message .alert .btn-close:hover {
  opacity: 1;
}
/* ============================================================
   WordPress Aura Theme — additional styles
   ============================================================ */

/* ── Post cards (archive / blog) ── */
.vb-post-card { background:#fff; border-radius:12px; box-shadow:0 1px 4px rgba(0,0,0,.06); overflow:hidden; margin-bottom:32px; }
.vb-post-card .vb-post-thumb img { width:100%; height:220px; object-fit:cover; display:block; }
.vb-post-card .vb-post-body { padding:24px; }
.vb-post-meta { font-size:13px; color:#94a3b8; margin-bottom:8px; display:flex; gap:12px; flex-wrap:wrap; }
.vb-post-title { font-size:1.3rem; font-weight:700; margin:0 0 12px; line-height:1.3; }
.vb-post-title a { color:var(--vb-black,#1e293b); text-decoration:none; }
.vb-post-title a:hover { color:var(--vb-color1,#6366f1); }
.vb-post-excerpt { color:var(--vb-text,#374151); margin-bottom:16px; line-height:1.6; }

/* ── Buttons ── */
.vb-btn { display:inline-flex; align-items:center; gap:6px; padding:10px 22px; border-radius:8px; font-weight:600; font-size:14px; text-decoration:none; cursor:pointer; border:none; transition:opacity .15s; }
.vb-btn-primary { background:var(--vb-color1,#6366f1); color:#fff; }
.vb-btn-primary:hover { opacity:.88; color:#fff; }

/* ── Single post ── */
.vb-single-post { max-width:none; margin:0 auto; }
.vb-entry-header { margin-bottom:24px; }
.vb-entry-title { font-size:2rem; font-weight:800; line-height:1.2; margin:0 0 12px; }
.vb-entry-thumb { margin-bottom:32px; border-radius:12px; overflow:hidden; }
.vb-entry-thumb img { width:100%; height:auto; display:block; }
.vb-entry-content { line-height:1.8; color:var(--vb-text,#374151); }
.vb-entry-content h1,.vb-entry-content h2,.vb-entry-content h3,.vb-entry-content h4 { color:var(--vb-black,#1e293b); margin-top:2em; }
.vb-entry-content img { max-width:100%; border-radius:8px; }
.vb-entry-footer { margin-top:32px; padding-top:20px; border-top:1px solid #e2e8f0; }
.vb-post-tags a { display:inline-block; background:#f1f5f9; border-radius:20px; padding:3px 12px; font-size:12px; color:#475569; margin:2px; text-decoration:none; }

/* ── Archive header ── */
.vb-archive-header { margin-bottom:32px; }
.vb-archive-title { font-size:1.8rem; font-weight:800; }
.vb-archive-description { color:var(--vb-text,#374151); margin-top:8px; }

/* ── Error (404) page ── */
.vb-error-page { text-align:center; padding:80px 24px; }
.vb-error-code  { font-size:7rem; font-weight:900; color:var(--vb-color1,#6366f1); line-height:1; }
.vb-error-title { font-size:2rem; font-weight:700; margin:16px 0 12px; }
.vb-error-message { color:var(--vb-text,#374151); margin-bottom:28px; }
.vb-error-home { display:inline-block; padding:12px 28px; background:var(--vb-color1,#6366f1); color:#fff; border-radius:8px; text-decoration:none; font-weight:600; }

/* ── WordPress navigation ── */
.vb-footer-nav { display:flex; flex-wrap:wrap; gap:16px; list-style:none; padding:0; margin:8px 0 0; }
.vb-footer-nav a { color:inherit; text-decoration:none; font-size:14px; opacity:.75; }
.vb-footer-nav a:hover { opacity:1; }
.nav-links { display:flex; justify-content:space-between; padding:24px 0; }
.nav-links a { color:var(--vb-color1,#6366f1); text-decoration:none; font-weight:600; }

/* ── Header widgets ── */
.vb-header-widgets { display:flex; align-items:center; }

/* ── Search form ── */
.search-form { display:flex; gap:8px; margin-top:16px; }
.search-field { flex:1; padding:10px 16px; border:1px solid #e2e8f0; border-radius:8px; font-size:14px; }
.search-submit { padding:10px 20px; background:var(--vb-color1,#6366f1); color:#fff; border:none; border-radius:8px; cursor:pointer; font-weight:600; }

/* ── No results ── */
.vb-no-results { text-align:center; padding:60px 24px; }
.vb-no-results h2 { font-size:1.5rem; margin-bottom:12px; }
