/* ==========================================================================
   theme_xapi — Joomla 6 rebuild
   Colors, fonts, and layout confirmed from the live site's database/CSS.
   ========================================================================== */

/* ---- Fonts (embedded files — copy from the old template's /fonts folder) ---- */
@font-face {
  font-family: 'HelveticaNeue-ThinCond';
  src: url('../fonts/HelveticaNeue-ThinCond.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato-Regular';
  src: url('../fonts/Lato-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Arimo-Regular';
  src: url('../fonts/Arimo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Open Sans is a Google Font — loaded via <link> in the document head, not here */

/* ---- Design tokens ---- */
:root {
  --brand-blue: #25477d;
  --brand-red: #ac232f;
  --text-body: #272727;
  --text-link: #999999;
  --text-menu-muted: #92999E;
  --bg: #ffffff;
  --bg-footer: #272727;
  --font-h1: 'HelveticaNeue-ThinCond', sans-serif;
  --font-h2-menu: 'Lato-Regular', sans-serif;
  --font-body: 'Arimo-Regular', sans-serif;
  --font-h3: 'Open Sans', sans-serif;
  --container-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
}

a { color: var(--text-link); text-decoration: none; }
a:hover, a:active { color: var(--brand-red); outline: 0; }

h1 { font-family: var(--font-h1); font-weight: normal; }
h2 { font-family: var(--font-h2-menu); }
h3, h5, h6 { font-family: var(--font-h3); }
h4 { font-family: var(--font-body); font-size: 20px; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Accessibility ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { background: var(--bg); width: 100%; }

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 8px 20px;
  color: var(--text-menu-muted);
  min-height: 60px;
}
.header-utility { display: flex; gap: 15px; align-items: center; }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 29px 20px;
  flex-wrap: wrap;
  gap: 20px;
}

#logo img { display: block; }

/* ---- Main nav ---- */
.main-nav ul.mod-menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 5px;
  margin: 0;
  padding: 0;
}
.main-nav ul.mod-menu > li.nav-item { position: relative; }
.main-nav ul.mod-menu > li.nav-item > a {
  display: block;
  font-family: var(--font-h2-menu);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-body);
  padding: 0 15px 10px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease-out;
  white-space: nowrap;
  text-decoration: none;
}
.main-nav ul.mod-menu > li.nav-item > a:hover { border-bottom-color: var(--brand-blue); color: var(--text-body); }
.main-nav ul.mod-menu > li.nav-item.active > a,
.main-nav ul.mod-menu > li.nav-item.current > a {
  border-bottom-color: var(--brand-red);
  color: var(--brand-blue);
}

/* Dropdown submenus (any nested list inside a menu item) */
.main-nav ul.mod-menu li.nav-item ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-top: 2px solid var(--brand-blue);
  border-left: 1px solid #d5d5d5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  list-style: none;
  z-index: 999;
  margin: 0;
  padding: 0;
}
.main-nav ul.mod-menu li.nav-item:hover > ul { display: block; }
.main-nav ul.mod-menu li.nav-item ul li { border-bottom: 1px solid #eaeaea; }
.main-nav ul.mod-menu li.nav-item ul li a {
  display: block;
  padding: 10px 15px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-body);
  text-decoration: none;
}
.main-nav ul.mod-menu li.nav-item ul li a:hover { color: var(--brand-red); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle-bar { width: 24px; height: 2px; background: var(--text-body); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav { display: none; width: 100%; }
  .main-nav.is-open { display: block; }
  .main-nav ul.mod-menu { flex-direction: column; gap: 0; }
  .main-nav ul.mod-menu > li.nav-item > a { padding: 12px 10px; border-bottom: 1px solid #e6e6e6; }
  .main-nav ul.mod-menu li.nav-item ul { position: static; box-shadow: none; border-left: none; }
}

/* ==========================================================================
   Hero slider / Features
   ========================================================================== */
/* ==========================================================================
   Hero slider (Custom HTML module content, assigned to the Slideshow position)
   ========================================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}
.hero-slider .slide {
  position: relative;
  display: none;
}
.hero-slider .slide.is-active { display: block; }
.hero-slider .slide img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.hero-slider .caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: rgba(0,0,0,0.35);
}
.hero-slider .caption h2 {
  font-family: var(--font-h1);
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(20px, 4vw, 42px);
  max-width: 900px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  margin: 0;
}
.hero-slider .dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-slider .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}
.hero-slider .dot.is-active { background: var(--brand-red); }

/* Product gallery grid — uses the .photo-stack effect defined above */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px 24px;
  padding: 50px 0;
}
.product-gallery figure { margin: 0; text-align: center; }
.product-gallery img { width: 100%; display: block; border-radius: 4px; }
.product-gallery figcaption {
  margin-top: 14px;
  font-weight: 700;
  color: var(--text-body);
}

.features { padding: 40px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Recurring "photo stack" decorative effect from the original design —
   apply to any image you want styled this way, e.g. product screenshots */
.photo-stack {
  position: relative;
  background: #fff;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 1px 3px #c1c1c1;
}
.photo-stack::before,
.photo-stack::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 15px;
  top: 80%;
  width: 50%;
  max-width: 300px;
  background: #777;
  box-shadow: 0 15px 10px #777;
  transform: rotate(-3deg);
}
.photo-stack::before { left: 10px; }
.photo-stack::after { right: 10px; left: auto; transform: rotate(3deg); }

/* ---- Breadcrumbs (Joomla 6 core markup) ---- */
.mod-breadcrumbs__wrapper { margin-bottom: 20px; }
.mod-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  font-size: 13px;
}
.mod-breadcrumbs__here {
  font-weight: 700;
  color: var(--text-body);
}
.mod-breadcrumbs__item { color: var(--text-menu-muted); }
.mod-breadcrumbs__item + .mod-breadcrumbs__item::before {
  content: "/";
  margin-right: 6px;
  color: var(--text-menu-muted);
}
.mod-breadcrumbs__item.active span {
  color: var(--brand-red);
  font-weight: 600;
}
.mod-breadcrumbs__item a { color: var(--text-link); }
.mod-breadcrumbs__item a:hover { color: var(--brand-red); }

/* ==========================================================================
   Main layout
   ========================================================================== */
#wrapper { min-height: 610px; padding: 40px 20px; }

.main-layout.has-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}
.main-layout.no-sidebar { display: block; }

@media (max-width: 900px) {
  .main-layout.has-sidebar { grid-template-columns: 1fr; }
}

.sidebar { min-width: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-footer);
  color: #ccc;
  width: 100%;
  padding: 5px 20px 20px;
}
.footer-menu ul.menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0;
  margin-bottom: 25px;
}
.footer-menu ul.menu li {
  border-right: 1px solid #444;
  padding: 0 15px;
}
.footer-menu ul.menu li:last-child { border-right: none; }
.footer-menu ul.menu li a { color: var(--text-menu-muted); font-size: 15px; }
.footer-menu ul.menu li a:hover { color: var(--brand-red); }

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}

.footer-copyright { text-align: center; font-size: 13px; color: #999; padding-top: 20px; border-top: 1px solid #444; }
.footer-copyright p { margin: 0; }

/* ==========================================================================
   Contact form (native com_contact) — reusing the original form styling
   ========================================================================== */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 20px 5px;
  border: 1px solid #666;
  color: #666;
  font-size: 14px;
  border-radius: 0;
  background: transparent;
}
.contact-form .btn-primary {
  background: var(--brand-blue);
  color: #fff;
  border: none;
  border-radius: 4px;
  height: 44px;
  padding: 0 24px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-out;
}
.contact-form .btn-primary:hover { background: var(--brand-red); }


.gallery-band {
    background: #272727;
    border-top: 5px solid #1b1f3c;
    padding: 40px 0 0;
}
.gallery-band-grid {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.gallery-band-images {
    flex: 2;
}
.gallery-band-about {
    flex: 1;
    color: #fff;
}
.gallery-band-about h4 {
    color: #fafafa;
    margin: 0 0 25px;
}
.gallery-band-about p {
    font-size: 12px;
    line-height: 23px;
    color: #666;
}
.gallery-band-about p.lead {
    margin-top: -15px;
    margin-bottom: 25px;
    font-size: 15px;
}
.gallery-band-about p i {
    margin-right: 5px;
    font-size: 20px;
    color: #fff;
}

@media (max-width: 980px) {
    .gallery-band { padding: 50px 0 0; }
}
@media (max-width: 767px) {
    .gallery-band-grid { flex-direction: column; }
    .gallery-band-about { padding: 0 10px; }
}


/* ==========================================================================
   Overrides: Hide core Joomla injected text
   ========================================================================== */

/* ---- Accessibility ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

.sr-only,
.visually-hidden,
.mod-languages__pretext {
  position: absolute !important;
  width: 1px !important; 
  height: 1px !important;
  padding: 0 !important; 
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 2a. Active Page: Blue text, Red line */
.main-nav ul.mod-menu > li.nav-item.active > a,
.main-nav ul.mod-menu > li.nav-item.current > a {
    color: var(--brand-blue) !important;
    border-bottom-color: var(--brand-red) !important;
}

/* 2b. Hover State: Red text, Blue line */
.main-nav ul.mod-menu > li.nav-item > a:hover {
    color: var(--brand-red) !important;
    border-bottom-color: var(--brand-blue) !important;
}
/* 3. Add the grey dropdown arrow to items that have a sub-menu */
.main-nav ul.mod-menu > li.nav-item.parent > a::after,
.main-nav ul.mod-menu > li.nav-item:has(ul) > a::after {
    content: " \25BC"; /* This is the unicode for the small down arrow */
    font-size: 9px;
    color: #92999E; 
    margin-left: 7px;
    vertical-align: middle;
    transition: color 0.3s ease;
}

/* (Optional) Make the arrow also turn red when hovering */
.main-nav ul.mod-menu > li.nav-item.parent > a:hover::after,
.main-nav ul.mod-menu > li.nav-item:has(ul) > a:hover::after {
    color: var(--brand-red);
}


/* =========================================
     CONTACT FORM - PREMIUM VIBRANT BLUE GLOW
     ========================================= */

  /* 1. The Aesthetic Card Box (Dark Bento Style with Intense Ambient Glow) */
  #contact-form {
    background: linear-gradient(145deg, #080f1e 0%, #0a1326 100%) !important;
    border: 1px solid rgba(96, 165, 250, 0.2) !important;
    border-left: 4px solid #60a5fa !important; /* UPDATED: Bright XAPI Light Blue left border */
    border-radius: 16px !important;
    padding: 50px;
    margin: 40px auto;
    /* UPDATED: Multi-layered vibrant glow to match your screenshot perfectly */
    box-shadow: 0 10px 35px rgba(29, 77, 140, 0.5), 0 0 20px rgba(96, 165, 250, 0.15) !important; 
    max-width: 900px;
    transition: all 0.3s ease !important;
    
    /* Adds the float-up animation automatically on page load */
    animation: contactFloatUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
  }

  @keyframes contactFloatUp {
    to { opacity: 1; transform: translateY(0); }
  }

  /* Interactive Hover Float & Supercharged Blue Glow Effect */
  #contact-form:hover {
    background: linear-gradient(145deg, #0a1326 0%, #0d1a33 100%) !important;
    border-color: rgba(96, 165, 250, 0.4) !important;
    transform: translateY(-5px) !important;
    /* UPDATED: Glow intensifies and expands when hovered */
    box-shadow: 0 15px 50px rgba(29, 77, 140, 0.7), 0 0 30px rgba(96, 165, 250, 0.3) !important; 
  }
  /* Fix Joomla native page headings above the form */
  .contact-category h1, 
  .contact-category h2, 
  .contact h2, 
  .contact h3,
  .page-header h2 {
    font-family: var(--font-h1) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-align: center;
    margin-bottom: 20px;
  }

  /* 2. Remove default fieldset borders and set up Flexbox grid */
  #contact-form fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  #contact-form fieldset > div {
    width: 100%;
    box-sizing: border-box;
  }

  /* 3. Force Name & Email to be side-by-side (Half width) */
  #contact-form fieldset > div:has(input[name*="[contact_name]"]),
  #contact-form fieldset > div:has(input[name*="[contact_email]"]),
  #contact-form .field-name,
  #contact-form .field-email {
    width: 48% !important;
  }

  /* Style the Labels (Name, Email, Subject) */
  #contact-form .control-label {
    display: block !important;
    margin-bottom: 8px;
    font-family: var(--font-h2-menu), inherit !important;
    font-weight: 600 !important;
    color: #cbd5e1 !important; /* Bright Slate Gray */
    font-size: 15px !important;
  }

  /* 4. Style the input boxes for Dark Mode */
  #contact-form input[type="text"],
  #contact-form input[type="email"],
  #contact-form textarea {
    width: 100%;
    padding: 14px 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    margin-top: 0;
    margin-bottom: 25px !important;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 15px !important;
    background-color: #050b14 !important; /* Deep inset dark background */
    color: #ffffff !important; /* White typing text */
    transition: all 0.3s ease !important;
  }

  /* Input Focus Glow (XAPI Blue) */
  #contact-form input[type="text"]:focus,
  #contact-form input[type="email"]:focus,
  #contact-form textarea:focus {
    border-color: #60a5fa !important;
    outline: none !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15) !important;
  }
  
  #contact-form textarea {
    min-height: 180px;
    resize: vertical;
  }

  /* 5. HIDE LEFTOVER TITLES AND SPAM LABELS */
  #contact-form legend,
  #contact-form fieldset > p,
  #contact-form .field-checkboxes > .control-label,
  #contact-form label[for="jform_captcha"],
  #contact-form .field-captcha label {
    display: none !important;
  }

  /* =========================================
     6. CHECKBOX & PRIVACY POLICY TEXT
     ========================================= */
  .controls fieldset.checkboxes, 
  #contact-form .checkbox, 
  #contact-form .form-check,
  #contact-form .field-checkboxes {
    position: relative !important;
    display: block !important;
    margin-top: 10px;
    margin-bottom: 25px;
  }

  #contact-form input[type="checkbox"],
  fieldset.checkboxes input[type="checkbox"] {
    position: absolute !important;
    top: 4px !important;
    left: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2147483647 !important;
    width: 18px !important;
    height: 18px !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    margin: 0 !important;
    accent-color: #60a5fa !important; /* Premium Blue accent when checked */
  }

  /* Push privacy text to the right and color it dark-mode slate */
  #contact-form input[type="checkbox"] + label,
  #contact-form input[type="checkbox"] ~ label,
  fieldset.checkboxes label,
  #contact-form .field-checkboxes label:not(.control-label) {
    padding-left: 32px !important; 
    display: inline-block !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    font-weight: normal !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #94a3b8 !important; /* Muted Slate */
  }

  /* Kill the broken FAKE template checkboxes */
  .form-check label::before, .form-check label::after,
  fieldset.checkboxes label::before, fieldset.checkboxes label::after {
    display: none !important;
  }

  /* =========================================
     7. XAPI BRAND RED SUBMIT BUTTON
     ========================================= */
  #contact-form button[type="submit"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 20px auto 10px auto !important; 
    background-color: #ac232f !important; /* XAPI Brand Red */
    color: #ffffff !important;
    padding: 16px 40px !important;
    font-size: 16px !important;
    border: 1px solid #c92a37 !important;
    border-radius: 12px !important; 
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 0 20px rgba(172, 35, 47, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    will-change: transform, box-shadow;
  }

  #contact-form button[type="submit"]:hover {
    background-color: #c92a37 !important; 
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 30px rgba(172, 35, 47, 0.7) !important;
  }
/* =========================================
   2. MAIN NAVIGATION - DARK THEME
   ========================================= */

/* 1. The Header Bar Wrapper */
.header-main {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 10px 20px !important; 
    position: relative;
    z-index: 99 !important;
}

/* 2. Setup the Menu Row */
.main-nav ul.mod-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important; 
}

/* 3. The List Items */
.main-nav ul.mod-menu > li.nav-item {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 4. The Links (Light text for dark mode) */
.main-nav ul.mod-menu > li.nav-item > a {
    color: #cbd5e1 !important; /* Light slate gray so it is visible! */
    font-weight: 600 !important;
    font-size: 16px !important;
    background: transparent !important;
    border: none !important; 
    position: relative;
    line-height: 1 !important;
    padding: 15px 18px !important; 
    text-decoration: none !important;
    border-radius: 8px 8px 0 0 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* THE PREMIUM HOVER EFFECT (DARK MODE) */
.main-nav ul.mod-menu > li.nav-item > a:hover,
.main-nav ul.mod-menu > li.nav-item.active > a,
.main-nav ul.mod-menu > li.nav-item.current > a {
    color: #60a5fa !important; /* Glowing Light Blue text */
    background-color: rgba(255, 255, 255, 0.05) !important; /* Subtle frosted glass instead of a white box! */
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.1) !important;
}

/* RESTORED DOWN ARROWS */
.main-nav ul.mod-menu > li.nav-item.parent > a::after,
.main-nav ul.mod-menu > li.nav-item:has(ul) > a::after {
    content: " \25BC"; 
    font-size: 9px;
    color: #64748b; 
    margin-left: 7px;
    vertical-align: middle;
    transition: color 0.15s ease-out;
}
.main-nav ul.mod-menu > li.nav-item.parent > a:hover::after,
.main-nav ul.mod-menu > li.nav-item:has(ul) > a:hover::after {
    color: #60a5fa !important;
}

/* 5. The Animated Red Line */
.main-nav ul.mod-menu > li.nav-item > a::before {
    content: "";
    position: absolute;
    bottom: 0 !important; 
    left: 0;
    width: 100%; 
    height: 3px !important; 
    background-color: #ac232f !important; 
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: all 0.2s ease-out !important; 
    z-index: 101 !important;
}

.main-nav ul.mod-menu > li.nav-item:hover > a::before,
.main-nav ul.mod-menu > li.nav-item.active > a::before,
.main-nav ul.mod-menu > li.nav-item.current > a::before {
    transform: scaleX(1);
    bottom: -3px !important; 
}

/* 6. The Dropdown Box (Dark Mode) */
.main-nav ul.mod-menu li.nav-item ul {
    position: absolute !important;
    top: 100% !important; 
    left: 0 !important;
    margin-top: 0 !important; 
    border-top: 3px solid #ac232f !important; /* Red top border */
    border-left: none !important; 
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
    padding: 10px 0 !important;
    z-index: 100 !important;
    background: #0f172a !important; /* Dark dropdown background */
}
.main-nav ul.mod-menu li.nav-item ul li { border-bottom: 1px solid rgba(255,255,255,0.05) !important; }
.main-nav ul.mod-menu li.nav-item ul li a {
    color: #cbd5e1 !important;
    background: transparent !important;
    padding: 12px 20px !important;
}
.main-nav ul.mod-menu li.nav-item ul li a:hover {
    color: #60a5fa !important;
    background: rgba(255,255,255,0.05) !important;
}

/* Fix Flag Backgrounds permanently */
.mod-languages a, 
.mod-languages img {
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* =========================================
   BREADCRUMBS - PREMIUM BADGE / PILL STYLE
   ========================================= */

/* 1. The Wrapper (No background, just layout) */
.mod-breadcrumbs__wrapper {
    margin: 20px auto 40px auto;
    max-width: 1100px;
}

.mod-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px; /* Space between each badge */
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit;
}

/* 2. "You are here:" - Solid Blue Label Badge */
.mod-breadcrumbs__here {
    background-color: #1d4d8c; /* XAPI Brand Blue */
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(29, 77, 140, 0.25);
}

/* 3. The List Items (Flex container for chevron + pill) */
.mod-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
}

/* 4. The Separator (Chevron floating seamlessly between pills) */
.mod-breadcrumbs__item + .mod-breadcrumbs__item::before {
    content: "\203A" !important; /* Unicode for sleek › */
    color: #a0aec0;
    font-size: 18px;
    margin-right: 12px;
    line-height: 1;
}

/* 5. The Breadcrumb Links (White Floating Pills) */
.mod-breadcrumbs__item a {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #4a5568 !important;
    padding: 6px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Link Hover Effect (Lifts up, shadow expands, border turns blue) */
.mod-breadcrumbs__item a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(29, 77, 140, 0.15);
    border-color: #1d4d8c;
    color: #1d4d8c !important;
}

/* 6. The Current Page (Solid Red Pill) */
.mod-breadcrumbs__item.active span {
    background-color: #ac232f; /* XAPI Brand Red */
    color: #ffffff !important;
    padding: 6px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(172, 35, 47, 0.25);
}


/* =========================================
   GLOBAL BUTTON HOVER EFFECT (PREMIUM LIFT)
   ========================================= */

/* =========================================
   GLOBAL CURVE FOR ALL BUTTONS & SEARCH (12px)
   ========================================= */
button, 
input[type="submit"], 
input[type="button"], 
.btn, 
a.btn, 
.button,
a.button,
.v1-link-btn,
.v1-pdf-btn,
.aesthetic-btn,
a.aesthetic-btn,
#contact-form button[type="submit"],
.header-top input[type="search"], 
.header-top input[type="text"] {
    border-radius: 12px !important; /* 12px matched to Explore button */
}

/* =========================================
   BREADCRUMBS - PREMIUM BADGE STYLE (12px)
   ========================================= */

/* 1. The Wrapper */
.mod-breadcrumbs__wrapper {
    margin: 20px auto 40px auto;
    max-width: 1100px;
}

.mod-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px; 
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit;
}

/* 2. "You are here:" - Solid Blue Label Badge */
.mod-breadcrumbs__here {
    background-color: #1d4d8c; 
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 12px !important; 
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(29, 77, 140, 0.25);
}

/* 3. The List Items */
.mod-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
}

/* 5. The Breadcrumb Links (Dark Theme Glass Style) */
.mod-breadcrumbs__item a {
    background-color: rgba(255, 255, 255, 0.05) !important; /* Translucent dark glass */
    border: 1px solid rgba(255, 255, 255, 0.1) !important; /* Subtle border */
    color: #cbd5e1 !important; /* Light slate text */
    padding: 6px 18px;
    border-radius: 12px !important; 
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block !important;
}

/* Link Hover Effect (Lifts up, shadow expands, turns XAPI Blue) */
.mod-breadcrumbs__item a:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.15) !important; /* Soft blue glow */
    border-color: rgba(96, 165, 250, 0.4) !important; /* Blue border */
    color: #60a5fa !important; /* XAPI Light Blue text */
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* 4. The Separator (Darken the arrows slightly to match the theme) */
.mod-breadcrumbs__item + .mod-breadcrumbs__item::before {
    color: #475569 !important; 
}

/* 6. The Current Page (Solid Red Badge) */
.mod-breadcrumbs__item.active span {
    background-color: #ac232f; 
    color: #ffffff !important;
    padding: 6px 18px;
    border-radius: 12px !important; 
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(172, 35, 47, 0.25);
}

/* 2. Apply the Lift, Shadow, and Color Change on Hover */
button:hover, 
input[type="submit"]:hover, 
input[type="button"]:hover, 
.btn:hover, 
a.btn:hover,
.button:hover,
a.button:hover,
.v1-link-btn:hover,
.v1-pdf-btn:hover,
.aesthetic-btn:hover,
a.aesthetic-btn:hover,
#contact-form button[type="submit"]:hover {
    transform: translateY(-3px) !important; /* Lifts up off the page */
    box-shadow: 0 10px 25px rgba(29, 77, 140, 0.25) !important; /* Glowing shadow */
    background-color: #ac232f !important; /* Snaps to XAPI Brand Red */
    color: #ffffff !important;
    border-color: #ac232f !important;
}

/* 3. Button Active/Click State (Pushes back down when clicked) */
button:active, 
input[type="submit"]:active, 
input[type="button"]:active, 
.btn:active, 
a.btn:active,
.button:active,
a.button:active,
.v1-link-btn:active,
.v1-pdf-btn:active,
.aesthetic-btn:active,
a.aesthetic-btn:active,
#contact-form button[type="submit"]:active {
    transform: translateY(0) !important; /* Snaps back down */
    box-shadow: 0 2px 8px rgba(29, 77, 140, 0.15) !important; /* Shadow shrinks */
}

/* =========================================
   5. FIXES FOR GLOBAL BUTTON SIDE EFFECTS
   ========================================= */

/* 1. Hide the hamburger menu on Desktop (fixes the forced visibility) */
@media (min-width: 901px) {
    .nav-toggle, 
    button.nav-toggle, 
    .offcanvas-toggle,
    #offcanvas-toggler {
        display: none !important;
    }
}

/* 2. Fix the Search Box & Button Alignment in the Top Bar */
.header-top form,
.header-top .mod-search,
.header-top .search {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

/* Ensure the search input and button sit perfectly level */
.header-top input[type="search"], 
.header-top input[type="text"] {
    margin: 0 !important;
    vertical-align: middle !important;
}

.header-top button, 
.header-top input[type="submit"], 
.header-top .btn {
    margin: 0 0 0 10px !important; /* Puts a perfect 10px gap between input and button */
    vertical-align: middle !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}


/* =========================================
   4. RESTORE CONTACT FORM BUTTON CENTERING
   ========================================= */
#contact-form button[type="submit"] {
    display: flex !important; 
    width: fit-content !important; /* Keeps the button wrapping the text */
    margin: 30px auto 10px auto !important; /* Centers the button perfectly */
}


/* =========================================
   GLOBAL "PILL" CURVE FOR ALL BUTTONS
   ========================================= */
button, 
input[type="submit"], 
input[type="button"], 
.btn, 
a.btn, 
.button,
a.button,
.v1-link-btn,
.v1-pdf-btn,
.aesthetic-btn,
a.aesthetic-btn,
#contact-form button[type="submit"],
.header-top input[type="search"], /* Curves the top search box to match! */
.header-top input[type="text"] {
    border-radius: 12px !important; /* Forces a perfect half-circle curve on the edges */
}

/* =========================================
   XAPI SMART SEARCH (FINDER) STYLING - V2
   ========================================= */

/* 1. Main Container Wrapper */
.finder {
  max-width: 900px;
  margin: 40px auto;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
  border-top: 4px solid #1d4d8c !important; /* XAPI Blue */
}

/* Hide the ugly "Search Terms:" label to make it cleaner */
.finder legend,
.finder label[for^="finder-search"],
.finder label[for="q"] {
  display: none !important;
}

/* 2. The Search Input Box */
.finder input[type="text"],
.finder input[type="search"],
.finder input[name="q"],
.finder .search-query {
  min-width: 280px !important;
  padding: 12px 18px !important;
  font-size: 16px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important;
  color: #333 !important;
  background-color: #fff !important;
  transition: all 0.3s ease !important;
  margin-bottom: 10px !important;
  vertical-align: middle !important;
}

.finder input[type="text"]:focus,
.finder input[type="search"]:focus,
.finder input[name="q"]:focus {
  border-color: #1d4d8c !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(29, 77, 140, 0.1) !important;
}

/* 3. Base Styling for ALL Buttons on this page */
.finder button,
.finder input[type="submit"],
.finder input[type="button"] {
  padding: 12px 24px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  border: none !important;
  transition: all 0.3s ease !important;
  vertical-align: middle !important;
  margin-left: 8px !important;
  margin-bottom: 10px !important;
  background-color: #f1f5f9 !important; /* Soft gray for Advanced Search */
  color: #4a5568 !important;
}

.finder button:hover,
.finder input[type="button"]:hover {
  background-color: #e2e8f0 !important;
}

/* 4. Make the PRIMARY Search Button Red */
.finder button[type="submit"],
.finder input[type="submit"],
.finder button.btn-primary {
  background-color: #ac232f !important; /* XAPI Red */
  color: #ffffff !important;
}

.finder button[type="submit"]:hover,
.finder input[type="submit"]:hover {
  background-color: #8a1c25 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(172, 35, 47, 0.3) !important;
}

/* 5. Typography & Explanatory Text */
.finder p {
  color: #4a5568 !important;
  line-height: 1.7 !important;
  font-size: 15px !important;
  margin-top: 25px !important;
  margin-bottom: 25px !important;
  background-color: #f8fafc !important;
  padding: 20px !important;
  border-radius: 8px !important;
  border-left: 4px solid #1d4d8c !important;
}

/* 6. Filter Dropdowns ("Search by Type", "Category", etc.) */
.finder fieldset {
  border: none !important;
  padding: 0 !important;
  margin-top: 20px !important;
}

.finder select {
  width: 100% !important;
  max-width: 350px !important;
  padding: 10px 15px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  color: #333 !important;
  font-size: 14px !important;
  margin-bottom: 15px !important;
  display: block !important;
}

.finder label {
  font-weight: 700 !important;
  color: #1d4d8c !important;
  font-size: 14px !important;
  margin-bottom: 5px !important;
  display: block !important;
}

/* =========================================
   MOBILE FIX: TOP BLUE BAR
   ========================================= */
@media (max-width: 900px) {
  /* This turns the blue bar into a vertical, centered list */
  .header-top, 
  .header-utility {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px 10px !important;
    gap: 15px !important;
    height: auto !important;
  }

  /* Centers the individual modules (flags, contact info, search) */
  .header-top > div, 
  .header-top .custom, 
  .header-top .mod-languages {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
  }

  /* Stops the phone number and email from squeezing and stacking vertically */
  .header-top p, 
  .header-top span, 
  .header-top a {
    white-space: nowrap !important;
    margin: 0 !important;
    font-size: 15px !important;
  }

  /* Makes the language flags sit nicely side-by-side */
  .header-top .mod-languages ul {
    display: flex !important;
    gap: 15px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }

  /* Fixes the search bar width so it looks modern and fits the screen */
  .header-top .search, 
  .header-top form {
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
  }
}

/* =========================================
   GLOBAL DARK MODE (HEADER, BODY, FOOTER)
   ========================================= */

/* 1. Make the entire website background dark */
body {
    background-color: #050b14 !important;
    color: #94a3b8 !important;
}

/* Remove white backgrounds from the main content wrappers */
#main, .main-content, .item-page, .container {
    background-color: transparent !important;
}

/* 2. Dark Navigation Bar (Header) */
.site-header, 
.header-top,
.header-utility {
    background-color: #080f1e !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Make nav links light gray and turn blue on hover */
.site-header a, 
.header-top a,
ul.menu li a {
    color: #cbd5e1 !important;
    transition: color 0.3s ease !important;
}

ul.menu li a:hover,
.site-header a:hover {
    color: #60a5fa !important;
}

/* 3. Dark Footer to blend seamlessly */
footer, 
.footer, 
#footer, 
.footer-wrapper {
    background-color: #050b14 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #94a3b8 !important;
}

footer a, .footer a {
    color: #cbd5e1 !important;
}

footer a:hover, .footer a:hover {
    color: #60a5fa !important;
}

/* Fix the "You are here" Breadcrumbs */
.breadcrumb {
    background: transparent !important;
    color: #94a3b8 !important;
}
.breadcrumb a {
    color: #60a5fa !important;
}



/* =========================================
   FIX WHITE MENU ANOMALIES
   ========================================= */

/* 1. Remove the white background from the Active Menu Item ("Home") */
.site-header ul.menu li.active > a, 
.site-header ul.menu li.current > a,
.site-header ul.menu li.current.active > a {
    background-color: transparent !important;
    background: none !important;
    color: #60a5fa !important; /* Highlights active text in XAPI Light Blue instead */
    box-shadow: none !important;
    border: none !important;
}

/* 2. Prevent white backgrounds on hover/focus */
.site-header ul.menu li > a:hover,
.site-header ul.menu li > a:focus {
    background-color: transparent !important;
    background: none !important;
}

/* 3. Fix the white boxes around the language flags */
.header-top .mod-languages a,
.header-top .mod-languages img,
.header-top .mod-languages div {
    background-color: transparent !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

/* 4. Fix dropdown sub-menus (just in case they are still white) */
.site-header ul.menu ul,
.site-header ul.menu ul li {
    background-color: #080f1e !important; /* Dark background */
    border: none !important;
}
.site-header ul.menu ul li a {
    color: #cbd5e1 !important;
    background: transparent !important;
}



/* =========================================
   PREMIUM BENTO BOX FOOTER UPGRADE
   ========================================= */

/* 1. Wrap the footer in a sleek, frosted dark container */
.gallery-band {
    background: radial-gradient(circle at bottom, #0f1c35 0%, #050b14 80%) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 24px !important;
    max-width: 1200px !important;
    margin: 40px auto !important;
    padding: 60px 40px 40px 40px !important;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.4) !important;
}

/* 2. Style the image gallery grid so the thumbnails look like floating cards */
.gallery-band-images img {
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}
.gallery-band-images img:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(96, 165, 250, 0.5) !important;
    box-shadow: 0 10px 25px rgba(29, 77, 140, 0.3) !important;
}

/* 3. Typography & "ABOUT OUR COMPANY" Heading */
.gallery-band-about h4 {
    color: #ffffff !important;
    font-family: var(--font-h1) !important;
    font-size: 34px !important;
    font-weight: normal !important;
    letter-spacing: 1px !important;
    margin-bottom: 20px !important;
}

.gallery-band-about p,
.gallery-band-about p.lead {
    color: #94a3b8 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

.gallery-band-about p i {
    color: #60a5fa !important; /* XAPI Light Blue icons */
}

/* 4. Bottom Menu Links (Turned into clean floating pills) */
.site-footer {
    background-color: transparent !important;
    padding: 20px 0 40px 0 !important;
}

.footer-menu {
    display: flex !important;
    justify-content: center !important;
}

.footer-menu ul.menu {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.footer-menu ul.menu li {
    border-right: none !important; /* Removes the old ugly vertical lines */
    padding: 0 10px !important;
}

.footer-menu ul.menu li a {
    color: #cbd5e1 !important;
    font-family: var(--font-h2-menu) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: color 0.3s ease !important;
}

.footer-menu ul.menu li a:hover {
    color: #60a5fa !important;
}

/* 5. Copyright Section */
.footer-copyright {
    border-top: none !important;
    color: #64748b !important;
    font-size: 13px !important;
    margin-top: 20px !important;
}

/* =========================================
   TEXT COLOR TWEAKS FOR FOOTER BENTO BOX
   ========================================= */

/* 1. Brighter Body Text & Paragraphs */
.gallery-band-about p,
.gallery-band-about p.lead {
    color: #cbd5e1 !important; /* Brighter, perfectly readable light slate */
    font-size: 14px !important;
    line-height: 1.7 !important;
}

/* 2. Highlight Contact Details (Address, Phone, Fax labels) */
.gallery-band-about address, 
.gallery-band-about .contact-info,
.gallery-band-about p:has(i) {
    color: #e2e8f0 !important; /* Slightly brighter for the contact lines */
}

/* 3. Icons Color (XAPI Light Blue accent) */
.gallery-band-about p i {
    color: #60a5fa !important; 
}

/* 4. Footer Menu Links Brighter */
.footer-menu ul.menu li a {
    color: #cbd5e1 !important;
}
.footer-menu ul.menu li a:hover {
    color: #60a5fa !important;
}

/* 5. Copyright Text */
.footer-copyright {
    color: #94a3b8 !important; /* Soft muted gray for copyright */
}


/* =========================================
   RESTORED: SHAPES (12px) & PREMIUM LIFT
   ========================================= */

/* 1. Base Shape & Transition (Search Bar & All Global Buttons) */
button, 
input[type="submit"], 
input[type="button"], 
.btn, 
a.btn, 
.button,
a.button,
.v1-link-btn,
.v1-pdf-btn,
.aesthetic-btn,
a.aesthetic-btn,
#contact-form button[type="submit"],
.header-top input[type="search"], 
.header-top input[type="text"] {
    border-radius: 12px !important; /* Matches Explore button */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    will-change: transform, box-shadow; 
}

/* Ensure Buttons flex properly so text is centered */
button, input[type="submit"], input[type="button"], .btn, a.btn, .button, a.button {
    display: inline-flex !important; 
    align-items: center; 
    justify-content: center;
}

/* 2. Premium Lift Hover Effect */
button:hover, 
input[type="submit"]:hover, 
input[type="button"]:hover, 
.btn:hover, 
a.btn:hover,
.button:hover,
a.button:hover,
.v1-link-btn:hover,
.v1-pdf-btn:hover,
.aesthetic-btn:hover,
a.aesthetic-btn:hover,
#contact-form button[type="submit"]:hover {
    transform: translateY(-3px) !important; /* Lifts up off the page */
    box-shadow: 0 10px 25px rgba(29, 77, 140, 0.25) !important; /* Glowing shadow */
    background-color: #ac232f !important; /* Snaps to XAPI Brand Red */
    color: #ffffff !important;
    border-color: #ac232f !important;
}

/* 3. Button Active/Click State (Snaps back down) */
button:active, 
input[type="submit"]:active, 
input[type="button"]:active, 
.btn:active, 
a.btn:active,
.button:active,
a.button:active,
.v1-link-btn:active,
.v1-pdf-btn:active,
.aesthetic-btn:active,
a.aesthetic-btn:active,
#contact-form button[type="submit"]:active {
    transform: translateY(0) !important; 
    box-shadow: 0 2px 8px rgba(29, 77, 140, 0.15) !important; 
}

/* Search button specific hover */
.header-top button:hover, 
.header-top input[type="submit"]:hover { 
    background-color: #ffffff !important; 
    color: #ac232f !important; 
    transform: translateY(-2px) !important; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important; 
}

/* 4. Breadcrumb Badges (12px) */
.mod-breadcrumbs__here,
.mod-breadcrumbs__item a,
.mod-breadcrumbs__item.active span {
    border-radius: 12px !important;
}

/* =========================================
   RESTORED: ALIGNMENT AND MENU FIXES
   ========================================= */

/* Hide the hamburger menu on Desktop */
@media (min-width: 901px) {
    .nav-toggle, 
    button.nav-toggle, 
    .offcanvas-toggle,
    #offcanvas-toggler {
        display: none !important;
    }
}

/* Fix the Search Box & Button Alignment in the Top Bar */
.header-top form,
.header-top .mod-search,
.header-top .search {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.header-top input[type="search"], 
.header-top input[type="text"] {
    margin: 0 !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

.header-top button, 
.header-top input[type="submit"], 
.header-top .btn {
    margin: 0 0 0 10px !important; /* Perfect 10px gap between input and button */
    vertical-align: middle !important;
}

/* =========================================
   SUBPAGE TOP BAR FIX & BREADCRUMB HOVER FIX
   ========================================= */

/* 1. Force the Top Bar to match the Nav Bar color */
html body .header-top,
html body .site-header .header-top {
    background-color: #080f1e !important; 
    background: #080f1e !important;
    box-shadow: 100vmax 0 0 0 #080f1e, -100vmax 0 0 0 #080f1e !important; 
    border-bottom: none !important;
}

/* 2. CRITICAL FIX: Make spans inline-block so they can physically lift! */
.mod-breadcrumbs__here,
.mod-breadcrumbs__item.active span {
    display: inline-block !important; /* Required for the lift effect to work */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    will-change: transform, box-shadow;
    cursor: default !important;

}

/* 3. The Hover Effects */
.mod-breadcrumbs__here:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(29, 77, 140, 0.5) !important; /* Blue glow */
}

.mod-breadcrumbs__item.active span:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(172, 35, 47, 0.5) !important; /* Red glow */
}




.product-content h4 {
    font-family: var(--font-h1) !important; /* Switches to HelveticaNeue-ThinCond */
    font-size: 24px !important;            /* Slightly larger for impact */
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: #ffffff !important;
    margin-top: 0;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.product-content p {
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important; /* Ensures crisp, non-blurry text rendering */
    color: #94a3b8 !important;    /* Keeps the readable light slate tone */
    line-height: 1.65 !important;
    letter-spacing: 0.2px !important; /* Slight tracking for technical legibility */
    margin-bottom: 25px;
    flex-grow: 1;
}


/* =========================================
   NAVIGATION BAR - PREMIUM BLUE GLOW UPGRADE
   ========================================= */

/* 1. Give the Header Main a subtle frosted Bento styling and ambient blue glow */
.header-main {
    background: linear-gradient(145deg, rgba(8, 15, 30, 0.95) 0%, rgba(10, 19, 38, 0.95) 100%) !important;
    border-bottom: 1px solid rgba(96, 165, 250, 0.2) !important;
    box-shadow: 0 15px 40px rgba(29, 77, 140, 0.2) !important;
    border-radius: 0 0 16px 16px;
    margin-bottom: 25px;
    padding: 20px 30px !important;
}

/* 2. Elevate the Header Top utility bar with a clean separator shadow */
.header-top {
    border-bottom: 1px solid rgba(96, 165, 250, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

/* 3. Enhance Nav Items Hover & Active State with a Rich Blue Glow */
.main-nav ul.mod-menu > li.nav-item > a:hover,
.main-nav ul.mod-menu > li.nav-item.active > a,
.main-nav ul.mod-menu > li.nav-item.current > a {
    color: #60a5fa !important;
    background-color: rgba(96, 165, 250, 0.08) !important; /* Richer frosted blue tint */
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.25) !important; /* Distinct blue glow */
    border-radius: 12px 12px 0 0 !important;
}

/* 4. Dropdown Menus with matching Bento gradient and blue border glow */
.main-nav ul.mod-menu li.nav-item ul {
    background: linear-gradient(145deg, #080f1e 0%, #0a1326 100%) !important;
    border: 1px solid rgba(96, 165, 250, 0.2) !important;
    border-top: 3px solid #ac232f !important; /* Retained XAPI Red accent */
    box-shadow: 0 20px 50px rgba(29, 77, 140, 0.4) !important;
    border-radius: 0 0 12px 12px !important;
}

.main-nav ul.mod-menu li.nav-item ul li a:hover {
    color: #60a5fa !important;
    background: rgba(96, 165, 250, 0.1) !important;
}

/* =========================================
   UNIFIED SINGLE FLOATING CAPSULE HEADER
   ========================================= */

/* 1. Make the entire site-header a single cohesive floating capsule container */
.site-header {
    background: linear-gradient(145deg, rgba(8, 15, 30, 0.88) 0%, rgba(10, 19, 38, 0.88) 100%) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(96, 165, 250, 0.25) !important;
    border-radius: 24px !important; /* Unified rounded Bento capsule */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(29, 77, 140, 0.25) !important;
    max-width: 1150px !important;
    margin: 20px auto !important;
    padding: 15px 25px !important;
    position: relative;
    width: 100% !important;
    z-index: 1000;
}

/* 2. Top utility bar sits cleanly inside the top of the capsule */
.header-top {
    background: transparent !important;
    border-bottom: none !important; /* This removes the harsh line */
    box-shadow: none !important;
    padding: 4px 10px 12px 10px !important;
    margin-bottom: 0 !important; /* Adjusted to keep it tight without the line */
    min-height: auto !important;
}
/* 3. Main navigation row sits inside the bottom of the capsule */
.header-main {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 5px 10px !important;
    border-radius: 0 !important;
}

/* =========================================
   REDUCE SPACE BETWEEN NAVBAR & BREADCRUMBS
   ========================================= */
.site-header {
    margin-bottom: 5px !important; /* Reduces the bottom space of the floating capsule */
}

.mod-breadcrumbs__wrapper {
    margin-top: 5px !important; /* Reduces the top space above the breadcrumbs */
}


/* ==========================================================================
   JOOMLA SMART SEARCH (COM_FINDER) & AUTOCOMPLETE - DARK THEME
   ========================================================================== */

/* 1. Main Search Container */
.finder {
  background: linear-gradient(145deg, #080f1e 0%, #0a1326 100%) !important;
  border: 1px solid rgba(96, 165, 250, 0.2) !important;
  border-radius: 16px !important;
  padding: 50px !important;
  box-shadow: 0 15px 40px rgba(29, 77, 140, 0.25) !important;
  color: #94a3b8 !important;
  max-width: 1000px;
  margin: 40px auto !important;
  transition: all 0.3s ease;
}

.finder:hover {
  box-shadow: 0 20px 50px rgba(29, 77, 140, 0.4) !important;
  border-color: rgba(96, 165, 250, 0.3) !important;
}

/* Hide default ugly labels */
.finder legend,
.finder label[for^="finder-search"],
.finder label[for="q"] {
  display: none !important;
}

/* 2. Inputs */
.finder input[type="text"],
.finder input[type="search"],
.finder input[name="q"],
.finder .search-query {
  width: 100% !important;
  max-width: 400px !important;
  padding: 15px 20px !important;
  font-size: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease !important;
  margin: 0 15px 20px 0 !important;
  box-sizing: border-box;
  display: inline-block !important;
  vertical-align: middle !important;
}

.finder input[type="text"]:focus,
.finder input[type="search"]:focus,
.finder input[name="q"]:focus {
  border-color: #60a5fa !important;
  outline: none !important;
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.2) !important;
  background: rgba(0, 0, 0, 0.4) !important;
}

/* 3. Buttons (Primary Red & Secondary Glass) */
.finder button,
.finder input[type="submit"],
.finder input[type="button"],
.finder .btn {
  padding: 15px 30px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #cbd5e1 !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 10px 20px 0 !important;
}

.finder button:hover,
.finder input[type="button"]:hover,
.finder .btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  transform: translateY(-3px) !important;
}

/* Primary Search Button Override */
.finder button.btn-primary,
.finder button[type="submit"],
.finder input[type="submit"] {
  background-color: #ac232f !important;
  border-color: #c92a37 !important;
  color: #ffffff !important;
}

.finder button.btn-primary:hover,
.finder button[type="submit"]:hover,
.finder input[type="submit"]:hover {
  background-color: #c92a37 !important;
  box-shadow: 0 10px 25px rgba(172, 35, 47, 0.4) !important;
}

/* 4. Instructions / Hints (Bento Boxes) */
.finder p, 
.finder .finder-hints {
  color: #cbd5e1 !important;
  line-height: 1.7 !important;
  font-size: 15px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-left: 4px solid #1d4d8c !important;
  padding: 20px 25px !important;
  border-radius: 8px !important;
  margin-bottom: 15px !important;
  transition: all 0.3s ease;
}

.finder p:hover,
.finder .finder-hints:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  border-left-color: #60a5fa !important;
  transform: translateX(5px);
}

.finder p strong,
.finder b {
  color: #ffffff !important;
  font-weight: 700;
}

/* 5. Filters Layout & Select Menus */
.finder fieldset {
  border: none !important;
  margin-top: 40px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 40px 0 0 0 !important;
}

#finder-filter-select-window {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.finder label.filter-label,
.finder .control-label {
  font-family: var(--font-h1), inherit !important;
  font-weight: 600 !important;
  color: #60a5fa !important;
  font-size: 15px !important;
  margin-bottom: 10px !important;
  display: block !important;
}

.finder select {
  width: 100% !important;
  padding: 14px 20px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(0, 0, 0, 0.3) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  margin-bottom: 20px !important;
  display: block !important;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 20px top 50%;
  background-size: 12px auto;
  transition: all 0.3s ease;
}

.finder select:focus,
.finder select:hover {
  border-color: #60a5fa !important;
  outline: none !important;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.15) !important;
}

.finder select option {
  background-color: #0a1326 !important;
  color: #ffffff !important;
}

/* 6. Search Results Formatting */
.search-results, 
.finder-results {
  list-style: none !important;
  padding: 0 !important;
  margin-top: 40px !important;
}

.finder-results li {
  padding: 25px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.result-title, 
.finder-results h4 {
  font-family: var(--font-h1) !important;
  font-size: 22px !important;
  margin: 0 0 10px 0 !important;
}

.result-title a,
.finder-results h4 a {
  color: #60a5fa !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.result-title a:hover,
.finder-results h4 a:hover {
  color: #93c5fd !important;
}

.result-text,
.finder-results .result-text {
  color: #94a3b8 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* ==========================================================================
   7. SMART SEARCH AUTOCOMPLETE (AWESOMPLETE) OVERRIDE
   ========================================================================== */

/* Main Dropdown Container */
div.awesomplete > ul {
  background: linear-gradient(145deg, #080f1e 0%, #0a1326 100%) !important;
  border: 1px solid rgba(96, 165, 250, 0.3) !important;
  border-top: 3px solid #ac232f !important;
  border-radius: 0 0 12px 12px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(29, 77, 140, 0.3) !important;
  margin-top: 8px !important;
  padding: 8px 0 !important;
  z-index: 9999 !important;
}

/* Remove default white pointer/rhombus */
div.awesomplete > ul::before,
div.awesomplete > ul::after {
  display: none !important;
}

/* Suggestion List Items */
div.awesomplete > ul > li {
  color: #cbd5e1 !important;
  background: transparent !important;
  padding: 12px 20px !important;
  font-size: 14px !important;
  font-family: var(--font-body), sans-serif !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

div.awesomplete > ul > li:last-child {
  border-bottom: none !important;
}

/* Hover & Keyboard Select */
div.awesomplete > ul > li:hover,
div.awesomplete > ul > li[aria-selected="true"] {
  background: rgba(96, 165, 250, 0.1) !important;
  color: #60a5fa !important;
  padding-left: 25px !important; /* Gentle right shift */
}

/* Kill yellow highlighter, replace with glowing white text */
div.awesomplete > ul > li mark,
div.awesomplete > ul > li [data-word] {
  background: transparent !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3) !important;
  padding: 0 !important;
}

/* =========================================
   PURE CSS: TIGHTER PILLS & BORDER GLOW
   ========================================= */

/* 1. Fix the Module Container & Reduce Gap */
.mod-languages, 
.header-top .mod-languages {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 6px !important; /* Pulls elements tighter together */
}

.mod-languages ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important; /* Pulls list items tighter together */
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Force the Flag Container (The Glass Pill) */
.mod-languages a, 
.header-top a:has(img[src*="de"]),
.header-top a:has(img[src*="en"]),
.header-top a:has(img[src*="gb"]) {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important; /* Slightly tighter internal padding */
    margin: 0 3px !important; /* Greatly reduced outside margin */
    height: 36px !important; 
    min-height: 36px !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.05) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important; 
    border-radius: 12px !important; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    text-decoration: none !important;
}

/* 3. Force the Flag Images */
.mod-languages a img,
.header-top a img[src*="de"],
.header-top a img[src*="en"],
.header-top a img[src*="gb"] {
    display: block !important;
    width: 24px !important;
    min-width: 24px !important;
    height: 16px !important; 
    min-height: 16px !important;
    max-height: 16px !important;
    object-fit: cover !important; 
    border-radius: 2px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important; /* Subtle base border on the flag */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

/* 4. Hover Effect for ALL flags */
.mod-languages a:hover,
.header-top a:has(img[src*="de"]):hover,
.header-top a:has(img[src*="en"]):hover,
.header-top a:has(img[src*="gb"]):hover {
    background: rgba(96, 165, 250, 0.1) !important; 
    border-color: rgba(96, 165, 250, 0.6) !important; 
    transform: translateY(-3px) !important; 
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.3) !important;
}

/* =========================================
   PURE CSS: TIGHTER PILLS & FLAG-ONLY GLOW
   ========================================= */

/* 1. Fix the Module Container & Reduce Gap */
.mod-languages, 
.header-top .mod-languages {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 6px !important; /* Pulls elements tighter together */
}

.mod-languages ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important; /* Pulls list items tighter together */
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Force the Flag Container (The Glass Pill) */
.mod-languages a, 
.header-top a:has(img[src*="de"]),
.header-top a:has(img[src*="en"]),
.header-top a:has(img[src*="gb"]) {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important; /* Slightly tighter internal padding */
    margin: 0 3px !important; /* Greatly reduced outside margin */
    height: 36px !important; 
    min-height: 36px !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.05) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important; 
    border-radius: 12px !important; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    text-decoration: none !important;
}

/* 3. Force the Flag Images */
.mod-languages a img,
.header-top a img[src*="de"],
.header-top a img[src*="en"],
.header-top a img[src*="gb"] {
    display: block !important;
    width: 24px !important;
    min-width: 24px !important;
    height: 16px !important; 
    min-height: 16px !important;
    max-height: 16px !important;
    object-fit: cover !important; 
    border-radius: 2px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important; /* Subtle base border on the flag */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

/* 4. Hover Effect for ALL flags */
.mod-languages a:hover,
.header-top a:has(img[src*="de"]):hover,
.header-top a:has(img[src*="en"]):hover,
.header-top a:has(img[src*="gb"]):hover {
    background: rgba(96, 165, 250, 0.1) !important; 
    border-color: rgba(96, 165, 250, 0.6) !important; 
    transform: translateY(-3px) !important; 
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.3) !important;
}

/* =========================================
   PURE CSS: INVISIBLE CAPSULE & FLAG-ONLY GLOW
   ========================================= */

/* 1. Fix the Module Container & Reduce Gap */
.mod-languages, 
.header-top .mod-languages {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important; /* Space between the flags */
}

.mod-languages ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Make the Flag Container Invisible (Removes the outer capsule) */
.mod-languages a, 
.header-top a:has(img[src*="de"]),
.header-top a:has(img[src*="en"]),
.header-top a:has(img[src*="gb"]) {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px !important; /* Just enough padding to catch clicks easily */
    margin: 0 !important;
    background: transparent !important; /* Hides the dark background */
    border: none !important; /* Removes the container border */
    box-shadow: none !important; /* Removes the container shadow */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    text-decoration: none !important;
}

/* 3. Force the Flag Images to be crisp */
.mod-languages a img,
.header-top a img[src*="de"],
.header-top a img[src*="en"],
.header-top a img[src*="gb"] {
    display: block !important;
    width: 24px !important;
    min-width: 24px !important;
    height: 16px !important; 
    min-height: 16px !important;
    max-height: 16px !important;
    object-fit: cover !important; 
    border-radius: 2px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important; /* Subtle base border directly on the flag */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

/* 4. Hover Effect directly on the Flag Image */
.mod-languages a:hover img,
.header-top a:has(img[src*="de"]):hover img,
.header-top a:has(img[src*="en"]):hover img,
.header-top a:has(img[src*="gb"]):hover img {
    transform: translateY(-3px) !important; 
    border-color: rgba(96, 165, 250, 0.8) !important; 
    box-shadow: 0 5px 15px rgba(96, 165, 250, 0.4) !important;
}

/* =========================================
   PURE CSS ACTIVE STATE (FLAG GLOW ONLY)
   ========================================= */

/* 5. Keep Container Invisible on Active State */
html[lang^="de"] .header-top a:has(img[src*="de"]),
html[lang^="en"] .header-top a:has(img[src*="en"]),
html[lang^="en"] .header-top a:has(img[src*="gb"]),
.mod-languages li.lang-active a,
.mod-languages a.active {
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important;
    transform: translateY(0) !important;
    pointer-events: none !important; 
    cursor: default !important;
}

/* 6. Active Flag Image - Applies the bright blue glow directly to the flag */
html[lang^="de"] .header-top a:has(img[src*="de"]) img,
html[lang^="en"] .header-top a:has(img[src*="en"]) img,
html[lang^="en"] .header-top a:has(img[src*="gb"]) img,
.mod-languages li.lang-active a img,
.mod-languages a.active img {
    border: 1px solid rgba(96, 165, 250, 0.9) !important;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.8) !important;
}

/* 7. Hide the red dot entirely */
.mod-languages a::after,
.header-top a:has(img[src*="de"])::after,
.header-top a:has(img[src*="en"])::after {
    display: none !important;
}


/* ==========================================================================
   theme_xapi — Joomla 6 rebuild
   Colors, fonts, and layout confirmed from the live site's database/CSS.
   ========================================================================== */

/* ---- Fonts (embedded files — copy from the old template's /fonts folder) ---- */
@font-face {
  font-family: 'HelveticaNeue-ThinCond';
  src: url('../fonts/HelveticaNeue-ThinCond.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato-Regular';
  src: url('../fonts/Lato-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Arimo-Regular';
  src: url('../fonts/Arimo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Open Sans is a Google Font — loaded via <link> in the document head, not here */

/* ---- Design tokens ---- */
:root {
  --brand-blue: #25477d;
  --brand-red: #ac232f;
  --text-body: #272727;
  --text-link: #999999;
  --text-menu-muted: #92999E;
  --bg: #ffffff;
  --bg-footer: #272727;
  --font-h1: 'HelveticaNeue-ThinCond', sans-serif;
  --font-h2-menu: 'Lato-Regular', sans-serif;
  --font-body: 'Arimo-Regular', sans-serif;
  --font-h3: 'Open Sans', sans-serif;
  --container-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
}

a { color: var(--text-link); text-decoration: none; }
a:hover, a:active { color: var(--brand-red); outline: 0; }

h1 { font-family: var(--font-h1); font-weight: normal; }
h2 { font-family: var(--font-h2-menu); }
h3, h5, h6 { font-family: var(--font-h3); }
h4 { font-family: var(--font-body); font-size: 20px; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Accessibility ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { background: var(--bg); width: 100%; }

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 8px 20px;
  color: var(--text-menu-muted);
  min-height: 60px;
}
.header-utility { display: flex; gap: 15px; align-items: center; }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 29px 20px;
  flex-wrap: wrap;
  gap: 20px;
}

#logo img { display: block; }

/* ---- Main nav ---- */
.main-nav ul.mod-menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 5px;
  margin: 0;
  padding: 0;
}
.main-nav ul.mod-menu > li.nav-item { position: relative; }
.main-nav ul.mod-menu > li.nav-item > a {
  display: block;
  font-family: var(--font-h2-menu);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-body);
  padding: 0 15px 10px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease-out;
  white-space: nowrap;
  text-decoration: none;
}
.main-nav ul.mod-menu > li.nav-item > a:hover { border-bottom-color: var(--brand-blue); color: var(--text-body); }
.main-nav ul.mod-menu > li.nav-item.active > a,
.main-nav ul.mod-menu > li.nav-item.current > a {
  border-bottom-color: var(--brand-red);
  color: var(--brand-blue);
}

/* Dropdown submenus (any nested list inside a menu item) */
.main-nav ul.mod-menu li.nav-item ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-top: 2px solid var(--brand-blue);
  border-left: 1px solid #d5d5d5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  list-style: none;
  z-index: 999;
  margin: 0;
  padding: 0;
}
.main-nav ul.mod-menu li.nav-item:hover > ul { display: block; }
.main-nav ul.mod-menu li.nav-item ul li { border-bottom: 1px solid #eaeaea; }
.main-nav ul.mod-menu li.nav-item ul li a {
  display: block;
  padding: 10px 15px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-body);
  text-decoration: none;
}
.main-nav ul.mod-menu li.nav-item ul li a:hover { color: var(--brand-red); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle-bar { width: 24px; height: 2px; background: var(--text-body); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav { display: none; width: 100%; }
  .main-nav.is-open { display: block; }
  .main-nav ul.mod-menu { flex-direction: column; gap: 0; }
  .main-nav ul.mod-menu > li.nav-item > a { padding: 12px 10px; border-bottom: 1px solid #e6e6e6; }
  .main-nav ul.mod-menu li.nav-item ul { position: static; box-shadow: none; border-left: none; }
}

/* ==========================================================================
   Hero slider / Features
   ========================================================================== */
/* ==========================================================================
   Hero slider (Custom HTML module content, assigned to the Slideshow position)
   ========================================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}
.hero-slider .slide {
  position: relative;
  display: none;
}
.hero-slider .slide.is-active { display: block; }
.hero-slider .slide img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.hero-slider .caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: rgba(0,0,0,0.35);
}
.hero-slider .caption h2 {
  font-family: var(--font-h1);
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(20px, 4vw, 42px);
  max-width: 900px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  margin: 0;
}
.hero-slider .dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-slider .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}
.hero-slider .dot.is-active { background: var(--brand-red); }

/* Product gallery grid — uses the .photo-stack effect defined above */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px 24px;
  padding: 50px 0;
}
.product-gallery figure { margin: 0; text-align: center; }
.product-gallery img { width: 100%; display: block; border-radius: 4px; }
.product-gallery figcaption {
  margin-top: 14px;
  font-weight: 700;
  color: var(--text-body);
}

.features { padding: 40px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Recurring "photo stack" decorative effect from the original design —
   apply to any image you want styled this way, e.g. product screenshots */
.photo-stack {
  position: relative;
  background: #fff;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 1px 3px #c1c1c1;
}
.photo-stack::before,
.photo-stack::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 15px;
  top: 80%;
  width: 50%;
  max-width: 300px;
  background: #777;
  box-shadow: 0 15px 10px #777;
  transform: rotate(-3deg);
}
.photo-stack::before { left: 10px; }
.photo-stack::after { right: 10px; left: auto; transform: rotate(3deg); }

/* ---- Breadcrumbs (Joomla 6 core markup) ---- */
.mod-breadcrumbs__wrapper { margin-bottom: 20px; }
.mod-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  font-size: 13px;
}
.mod-breadcrumbs__here {
  font-weight: 700;
  color: var(--text-body);
}
.mod-breadcrumbs__item { color: var(--text-menu-muted); }
.mod-breadcrumbs__item + .mod-breadcrumbs__item::before {
  content: "/";
  margin-right: 6px;
  color: var(--text-menu-muted);
}
.mod-breadcrumbs__item.active span {
  color: var(--brand-red);
  font-weight: 600;
}
.mod-breadcrumbs__item a { color: var(--text-link); }
.mod-breadcrumbs__item a:hover { color: var(--brand-red); }

/* ==========================================================================
   Main layout
   ========================================================================== */
#wrapper { min-height: 610px; padding: 40px 20px; }

.main-layout.has-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}
.main-layout.no-sidebar { display: block; }

@media (max-width: 900px) {
  .main-layout.has-sidebar { grid-template-columns: 1fr; }
}

.sidebar { min-width: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-footer);
  color: #ccc;
  width: 100%;
  padding: 5px 20px 20px;
}
.footer-menu ul.menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0;
  margin-bottom: 25px;
}
.footer-menu ul.menu li {
  border-right: 1px solid #444;
  padding: 0 15px;
}
.footer-menu ul.menu li:last-child { border-right: none; }
.footer-menu ul.menu li a { color: var(--text-menu-muted); font-size: 15px; }
.footer-menu ul.menu li a:hover { color: var(--brand-red); }

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}

.footer-copyright { text-align: center; font-size: 13px; color: #999; padding-top: 20px; border-top: 1px solid #444; }
.footer-copyright p { margin: 0; }

/* ==========================================================================
   Contact form (native com_contact) — reusing the original form styling
   ========================================================================== */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 20px 5px;
  border: 1px solid #666;
  color: #666;
  font-size: 14px;
  border-radius: 0;
  background: transparent;
}
.contact-form .btn-primary {
  background: var(--brand-blue);
  color: #fff;
  border: none;
  border-radius: 4px;
  height: 44px;
  padding: 0 24px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-out;
}
.contact-form .btn-primary:hover { background: var(--brand-red); }


.gallery-band {
    background: #272727;
    border-top: 5px solid #1b1f3c;
    padding: 40px 0 0;
}
.gallery-band-grid {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.gallery-band-images {
    flex: 2;
}
.gallery-band-about {
    flex: 1;
    color: #fff;
}
.gallery-band-about h4 {
    color: #fafafa;
    margin: 0 0 25px;
}
.gallery-band-about p {
    font-size: 12px;
    line-height: 23px;
    color: #666;
}
.gallery-band-about p.lead {
    margin-top: -15px;
    margin-bottom: 25px;
    font-size: 15px;
}
.gallery-band-about p i {
    margin-right: 5px;
    font-size: 20px;
    color: #fff;
}

@media (max-width: 980px) {
    .gallery-band { padding: 50px 0 0; }
}
@media (max-width: 767px) {
    .gallery-band-grid { flex-direction: column; }
    .gallery-band-about { padding: 0 10px; }
}


/* ==========================================================================
   Overrides: Hide core Joomla injected text
   ========================================================================== */

/* ---- Accessibility ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

.sr-only,
.visually-hidden,
.mod-languages__pretext {
  position: absolute !important;
  width: 1px !important; 
  height: 1px !important;
  padding: 0 !important; 
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 2a. Active Page: Blue text, Red line */
.main-nav ul.mod-menu > li.nav-item.active > a,
.main-nav ul.mod-menu > li.nav-item.current > a {
    color: var(--brand-blue) !important;
    border-bottom-color: var(--brand-red) !important;
}

/* 2b. Hover State: Red text, Blue line */
.main-nav ul.mod-menu > li.nav-item > a:hover {
    color: var(--brand-red) !important;
    border-bottom-color: var(--brand-blue) !important;
}
/* 3. Add the grey dropdown arrow to items that have a sub-menu */
.main-nav ul.mod-menu > li.nav-item.parent > a::after,
.main-nav ul.mod-menu > li.nav-item:has(ul) > a::after {
    content: " \25BC"; /* This is the unicode for the small down arrow */
    font-size: 9px;
    color: #92999E; 
    margin-left: 7px;
    vertical-align: middle;
    transition: color 0.3s ease;
}

/* (Optional) Make the arrow also turn red when hovering */
.main-nav ul.mod-menu > li.nav-item.parent > a:hover::after,
.main-nav ul.mod-menu > li.nav-item:has(ul) > a:hover::after {
    color: var(--brand-red);
}


/* =========================================
     CONTACT FORM - PREMIUM VIBRANT BLUE GLOW
     ========================================= */

  /* 1. The Aesthetic Card Box (Dark Bento Style with Intense Ambient Glow) */
  #contact-form {
    background: linear-gradient(145deg, #080f1e 0%, #0a1326 100%) !important;
    border: 1px solid rgba(96, 165, 250, 0.2) !important;
    border-left: 4px solid #60a5fa !important; /* UPDATED: Bright XAPI Light Blue left border */
    border-radius: 16px !important;
    padding: 50px;
    margin: 40px auto;
    /* UPDATED: Multi-layered vibrant glow to match your screenshot perfectly */
    box-shadow: 0 10px 35px rgba(29, 77, 140, 0.5), 0 0 20px rgba(96, 165, 250, 0.15) !important; 
    max-width: 900px;
    transition: all 0.3s ease !important;
    
    /* Adds the float-up animation automatically on page load */
    animation: contactFloatUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
  }

  @keyframes contactFloatUp {
    to { opacity: 1; transform: translateY(0); }
  }

  /* Interactive Hover Float & Supercharged Blue Glow Effect */
  #contact-form:hover {
    background: linear-gradient(145deg, #0a1326 0%, #0d1a33 100%) !important;
    border-color: rgba(96, 165, 250, 0.4) !important;
    transform: translateY(-5px) !important;
    /* UPDATED: Glow intensifies and expands when hovered */
    box-shadow: 0 15px 50px rgba(29, 77, 140, 0.7), 0 0 30px rgba(96, 165, 250, 0.3) !important; 
  }
  /* Fix Joomla native page headings above the form */
  .contact-category h1, 
  .contact-category h2, 
  .contact h2, 
  .contact h3,
  .page-header h2 {
    font-family: var(--font-h1) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-align: center;
    margin-bottom: 20px;
  }

  /* 2. Remove default fieldset borders and set up Flexbox grid */
  #contact-form fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  #contact-form fieldset > div {
    width: 100%;
    box-sizing: border-box;
  }

  /* 3. Force Name & Email to be side-by-side (Half width) */
  #contact-form fieldset > div:has(input[name*="[contact_name]"]),
  #contact-form fieldset > div:has(input[name*="[contact_email]"]),
  #contact-form .field-name,
  #contact-form .field-email {
    width: 48% !important;
  }

  /* Style the Labels (Name, Email, Subject) */
  #contact-form .control-label {
    display: block !important;
    margin-bottom: 8px;
    font-family: var(--font-h2-menu), inherit !important;
    font-weight: 600 !important;
    color: #cbd5e1 !important; /* Bright Slate Gray */
    font-size: 15px !important;
  }

  /* 4. Style the input boxes for Dark Mode */
  #contact-form input[type="text"],
  #contact-form input[type="email"],
  #contact-form textarea {
    width: 100%;
    padding: 14px 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    margin-top: 0;
    margin-bottom: 25px !important;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 15px !important;
    background-color: #050b14 !important; /* Deep inset dark background */
    color: #ffffff !important; /* White typing text */
    transition: all 0.3s ease !important;
  }

  /* Input Focus Glow (XAPI Blue) */
  #contact-form input[type="text"]:focus,
  #contact-form input[type="email"]:focus,
  #contact-form textarea:focus {
    border-color: #60a5fa !important;
    outline: none !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15) !important;
  }
  
  #contact-form textarea {
    min-height: 180px;
    resize: vertical;
  }

  /* 5. HIDE LEFTOVER TITLES AND SPAM LABELS */
  #contact-form legend,
  #contact-form fieldset > p,
  #contact-form .field-checkboxes > .control-label,
  #contact-form label[for="jform_captcha"],
  #contact-form .field-captcha label {
    display: none !important;
  }

  /* =========================================
     6. CHECKBOX & PRIVACY POLICY TEXT
     ========================================= */
  .controls fieldset.checkboxes, 
  #contact-form .checkbox, 
  #contact-form .form-check,
  #contact-form .field-checkboxes {
    position: relative !important;
    display: block !important;
    margin-top: 10px;
    margin-bottom: 25px;
  }

  #contact-form input[type="checkbox"],
  fieldset.checkboxes input[type="checkbox"] {
    position: absolute !important;
    top: 4px !important;
    left: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2147483647 !important;
    width: 18px !important;
    height: 18px !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    margin: 0 !important;
    accent-color: #60a5fa !important; /* Premium Blue accent when checked */
  }

  /* Push privacy text to the right and color it dark-mode slate */
  #contact-form input[type="checkbox"] + label,
  #contact-form input[type="checkbox"] ~ label,
  fieldset.checkboxes label,
  #contact-form .field-checkboxes label:not(.control-label) {
    padding-left: 32px !important; 
    display: inline-block !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    font-weight: normal !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #94a3b8 !important; /* Muted Slate */
  }

  /* Kill the broken FAKE template checkboxes */
  .form-check label::before, .form-check label::after,
  fieldset.checkboxes label::before, fieldset.checkboxes label::after {
    display: none !important;
  }

  /* =========================================
     7. XAPI BRAND RED SUBMIT BUTTON
     ========================================= */
  #contact-form button[type="submit"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 20px auto 10px auto !important; 
    background-color: #ac232f !important; /* XAPI Brand Red */
    color: #ffffff !important;
    padding: 16px 40px !important;
    font-size: 16px !important;
    border: 1px solid #c92a37 !important;
    border-radius: 12px !important; 
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 0 20px rgba(172, 35, 47, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    will-change: transform, box-shadow;
  }

  #contact-form button[type="submit"]:hover {
    background-color: #c92a37 !important; 
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 30px rgba(172, 35, 47, 0.7) !important;
  }
/* =========================================
   2. MAIN NAVIGATION - DARK THEME
   ========================================= */

/* 1. The Header Bar Wrapper */
.header-main {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 10px 20px !important; 
    position: relative;
    z-index: 99 !important;
}

/* 2. Setup the Menu Row */
.main-nav ul.mod-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important; 
}

/* 3. The List Items */
.main-nav ul.mod-menu > li.nav-item {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 4. The Links (Light text for dark mode) */
.main-nav ul.mod-menu > li.nav-item > a {
    color: #cbd5e1 !important; /* Light slate gray so it is visible! */
    font-weight: 600 !important;
    font-size: 16px !important;
    background: transparent !important;
    border: none !important; 
    position: relative;
    line-height: 1 !important;
    padding: 15px 18px !important; 
    text-decoration: none !important;
    border-radius: 8px 8px 0 0 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* THE PREMIUM HOVER EFFECT (DARK MODE) */
.main-nav ul.mod-menu > li.nav-item > a:hover,
.main-nav ul.mod-menu > li.nav-item.active > a,
.main-nav ul.mod-menu > li.nav-item.current > a {
    color: #60a5fa !important; /* Glowing Light Blue text */
    background-color: rgba(255, 255, 255, 0.05) !important; /* Subtle frosted glass instead of a white box! */
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.1) !important;
}

/* RESTORED DOWN ARROWS */
.main-nav ul.mod-menu > li.nav-item.parent > a::after,
.main-nav ul.mod-menu > li.nav-item:has(ul) > a::after {
    content: " \25BC"; 
    font-size: 9px;
    color: #64748b; 
    margin-left: 7px;
    vertical-align: middle;
    transition: color 0.15s ease-out;
}
.main-nav ul.mod-menu > li.nav-item.parent > a:hover::after,
.main-nav ul.mod-menu > li.nav-item:has(ul) > a:hover::after {
    color: #60a5fa !important;
}

/* 5. The Animated Red Line */
.main-nav ul.mod-menu > li.nav-item > a::before {
    content: "";
    position: absolute;
    bottom: 0 !important; 
    left: 0;
    width: 100%; 
    height: 3px !important; 
    background-color: #ac232f !important; 
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: all 0.2s ease-out !important; 
    z-index: 101 !important;
}

.main-nav ul.mod-menu > li.nav-item:hover > a::before,
.main-nav ul.mod-menu > li.nav-item.active > a::before,
.main-nav ul.mod-menu > li.nav-item.current > a::before {
    transform: scaleX(1);
    bottom: -3px !important; 
}

/* 6. The Dropdown Box (Dark Mode) */
.main-nav ul.mod-menu li.nav-item ul {
    position: absolute !important;
    top: 100% !important; 
    left: 0 !important;
    margin-top: 0 !important; 
    border-top: 3px solid #ac232f !important; /* Red top border */
    border-left: none !important; 
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
    padding: 10px 0 !important;
    z-index: 100 !important;
    background: #0f172a !important; /* Dark dropdown background */
}
.main-nav ul.mod-menu li.nav-item ul li { border-bottom: 1px solid rgba(255,255,255,0.05) !important; }
.main-nav ul.mod-menu li.nav-item ul li a {
    color: #cbd5e1 !important;
    background: transparent !important;
    padding: 12px 20px !important;
}
.main-nav ul.mod-menu li.nav-item ul li a:hover {
    color: #60a5fa !important;
    background: rgba(255,255,255,0.05) !important;
}

/* Fix Flag Backgrounds permanently */
.mod-languages a, 
.mod-languages img {
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* =========================================
   BREADCRUMBS - PREMIUM BADGE / PILL STYLE
   ========================================= */

/* 1. The Wrapper (No background, just layout) */
.mod-breadcrumbs__wrapper {
    margin: 20px auto 40px auto;
    max-width: 1100px;
}

.mod-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px; /* Space between each badge */
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit;
}

/* 2. "You are here:" - Solid Blue Label Badge */
.mod-breadcrumbs__here {
    background-color: #1d4d8c; /* XAPI Brand Blue */
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(29, 77, 140, 0.25);
}

/* 3. The List Items (Flex container for chevron + pill) */
.mod-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
}

/* 4. The Separator (Chevron floating seamlessly between pills) */
.mod-breadcrumbs__item + .mod-breadcrumbs__item::before {
    content: "\203A" !important; /* Unicode for sleek › */
    color: #a0aec0;
    font-size: 18px;
    margin-right: 12px;
    line-height: 1;
}

/* 5. The Breadcrumb Links (White Floating Pills) */
.mod-breadcrumbs__item a {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #4a5568 !important;
    padding: 6px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Link Hover Effect (Lifts up, shadow expands, border turns blue) */
.mod-breadcrumbs__item a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(29, 77, 140, 0.15);
    border-color: #1d4d8c;
    color: #1d4d8c !important;
}

/* 6. The Current Page (Solid Red Pill) */
.mod-breadcrumbs__item.active span {
    background-color: #ac232f; /* XAPI Brand Red */
    color: #ffffff !important;
    padding: 6px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(172, 35, 47, 0.25);
}


/* =========================================
   GLOBAL BUTTON HOVER EFFECT (PREMIUM LIFT)
   ========================================= */

/* =========================================
   GLOBAL CURVE FOR ALL BUTTONS & SEARCH (12px)
   ========================================= */
button, 
input[type="submit"], 
input[type="button"], 
.btn, 
a.btn, 
.button,
a.button,
.v1-link-btn,
.v1-pdf-btn,
.aesthetic-btn,
a.aesthetic-btn,
#contact-form button[type="submit"],
.header-top input[type="search"], 
.header-top input[type="text"] {
    border-radius: 12px !important; /* 12px matched to Explore button */
}

/* =========================================
   BREADCRUMBS - PREMIUM BADGE STYLE (12px)
   ========================================= */

/* 1. The Wrapper */
.mod-breadcrumbs__wrapper {
    margin: 20px auto 40px auto;
    max-width: 1100px;
}

.mod-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px; 
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit;
}

/* 2. "You are here:" - Solid Blue Label Badge */
.mod-breadcrumbs__here {
    background-color: #1d4d8c; 
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 12px !important; 
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(29, 77, 140, 0.25);
}

/* 3. The List Items */
.mod-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
}

/* 5. The Breadcrumb Links (Dark Theme Glass Style) */
.mod-breadcrumbs__item a {
    background-color: rgba(255, 255, 255, 0.05) !important; /* Translucent dark glass */
    border: 1px solid rgba(255, 255, 255, 0.1) !important; /* Subtle border */
    color: #cbd5e1 !important; /* Light slate text */
    padding: 6px 18px;
    border-radius: 12px !important; 
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block !important;
}

/* Link Hover Effect (Lifts up, shadow expands, turns XAPI Blue) */
.mod-breadcrumbs__item a:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.15) !important; /* Soft blue glow */
    border-color: rgba(96, 165, 250, 0.4) !important; /* Blue border */
    color: #60a5fa !important; /* XAPI Light Blue text */
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* 4. The Separator (Darken the arrows slightly to match the theme) */
.mod-breadcrumbs__item + .mod-breadcrumbs__item::before {
    color: #475569 !important; 
}

/* 6. The Current Page (Solid Red Badge) */
.mod-breadcrumbs__item.active span {
    background-color: #ac232f; 
    color: #ffffff !important;
    padding: 6px 18px;
    border-radius: 12px !important; 
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(172, 35, 47, 0.25);
}

/* 2. Apply the Lift, Shadow, and Color Change on Hover */
button:hover, 
input[type="submit"]:hover, 
input[type="button"]:hover, 
.btn:hover, 
a.btn:hover,
.button:hover,
a.button:hover,
.v1-link-btn:hover,
.v1-pdf-btn:hover,
.aesthetic-btn:hover,
a.aesthetic-btn:hover,
#contact-form button[type="submit"]:hover {
    transform: translateY(-3px) !important; /* Lifts up off the page */
    box-shadow: 0 10px 25px rgba(29, 77, 140, 0.25) !important; /* Glowing shadow */
    background-color: #ac232f !important; /* Snaps to XAPI Brand Red */
    color: #ffffff !important;
    border-color: #ac232f !important;
}

/* 3. Button Active/Click State (Pushes back down when clicked) */
button:active, 
input[type="submit"]:active, 
input[type="button"]:active, 
.btn:active, 
a.btn:active,
.button:active,
a.button:active,
.v1-link-btn:active,
.v1-pdf-btn:active,
.aesthetic-btn:active,
a.aesthetic-btn:active,
#contact-form button[type="submit"]:active {
    transform: translateY(0) !important; /* Snaps back down */
    box-shadow: 0 2px 8px rgba(29, 77, 140, 0.15) !important; /* Shadow shrinks */
}

/* =========================================
   5. FIXES FOR GLOBAL BUTTON SIDE EFFECTS
   ========================================= */

/* 1. Hide the hamburger menu on Desktop (fixes the forced visibility) */
@media (min-width: 901px) {
    .nav-toggle, 
    button.nav-toggle, 
    .offcanvas-toggle,
    #offcanvas-toggler {
        display: none !important;
    }
}

/* 2. Fix the Search Box & Button Alignment in the Top Bar */
.header-top form,
.header-top .mod-search,
.header-top .search {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

/* Ensure the search input and button sit perfectly level */
.header-top input[type="search"], 
.header-top input[type="text"] {
    margin: 0 !important;
    vertical-align: middle !important;
}

.header-top button, 
.header-top input[type="submit"], 
.header-top .btn {
    margin: 0 0 0 10px !important; /* Puts a perfect 10px gap between input and button */
    vertical-align: middle !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}


/* =========================================
   4. RESTORE CONTACT FORM BUTTON CENTERING
   ========================================= */
#contact-form button[type="submit"] {
    display: flex !important; 
    width: fit-content !important; /* Keeps the button wrapping the text */
    margin: 30px auto 10px auto !important; /* Centers the button perfectly */
}


/* =========================================
   GLOBAL "PILL" CURVE FOR ALL BUTTONS
   ========================================= */
button, 
input[type="submit"], 
input[type="button"], 
.btn, 
a.btn, 
.button,
a.button,
.v1-link-btn,
.v1-pdf-btn,
.aesthetic-btn,
a.aesthetic-btn,
#contact-form button[type="submit"],
.header-top input[type="search"], /* Curves the top search box to match! */
.header-top input[type="text"] {
    border-radius: 12px !important; /* Forces a perfect half-circle curve on the edges */
}

/* =========================================
   XAPI SMART SEARCH (FINDER) STYLING - V2
   ========================================= */

/* 1. Main Container Wrapper */
.finder {
  max-width: 900px;
  margin: 40px auto;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
  border-top: 4px solid #1d4d8c !important; /* XAPI Blue */
}

/* Hide the ugly "Search Terms:" label to make it cleaner */
.finder legend,
.finder label[for^="finder-search"],
.finder label[for="q"] {
  display: none !important;
}

/* 2. The Search Input Box */
.finder input[type="text"],
.finder input[type="search"],
.finder input[name="q"],
.finder .search-query {
  min-width: 280px !important;
  padding: 12px 18px !important;
  font-size: 16px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important;
  color: #333 !important;
  background-color: #fff !important;
  transition: all 0.3s ease !important;
  margin-bottom: 10px !important;
  vertical-align: middle !important;
}

.finder input[type="text"]:focus,
.finder input[type="search"]:focus,
.finder input[name="q"]:focus {
  border-color: #1d4d8c !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(29, 77, 140, 0.1) !important;
}

/* 3. Base Styling for ALL Buttons on this page */
.finder button,
.finder input[type="submit"],
.finder input[type="button"] {
  padding: 12px 24px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  border: none !important;
  transition: all 0.3s ease !important;
  vertical-align: middle !important;
  margin-left: 8px !important;
  margin-bottom: 10px !important;
  background-color: #f1f5f9 !important; /* Soft gray for Advanced Search */
  color: #4a5568 !important;
}

.finder button:hover,
.finder input[type="button"]:hover {
  background-color: #e2e8f0 !important;
}

/* 4. Make the PRIMARY Search Button Red */
.finder button[type="submit"],
.finder input[type="submit"],
.finder button.btn-primary {
  background-color: #ac232f !important; /* XAPI Red */
  color: #ffffff !important;
}

.finder button[type="submit"]:hover,
.finder input[type="submit"]:hover {
  background-color: #8a1c25 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(172, 35, 47, 0.3) !important;
}

/* 5. Typography & Explanatory Text */
.finder p {
  color: #4a5568 !important;
  line-height: 1.7 !important;
  font-size: 15px !important;
  margin-top: 25px !important;
  margin-bottom: 25px !important;
  background-color: #f8fafc !important;
  padding: 20px !important;
  border-radius: 8px !important;
  border-left: 4px solid #1d4d8c !important;
}

/* 6. Filter Dropdowns ("Search by Type", "Category", etc.) */
.finder fieldset {
  border: none !important;
  padding: 0 !important;
  margin-top: 20px !important;
}

.finder select {
  width: 100% !important;
  max-width: 350px !important;
  padding: 10px 15px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  color: #333 !important;
  font-size: 14px !important;
  margin-bottom: 15px !important;
  display: block !important;
}

.finder label {
  font-weight: 700 !important;
  color: #1d4d8c !important;
  font-size: 14px !important;
  margin-bottom: 5px !important;
  display: block !important;
}

/* =========================================
   MOBILE FIX: TOP BLUE BAR
   ========================================= */
@media (max-width: 900px) {
  /* This turns the blue bar into a vertical, centered list */
  .header-top, 
  .header-utility {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px 10px !important;
    gap: 15px !important;
    height: auto !important;
  }

  /* Centers the individual modules (flags, contact info, search) */
  .header-top > div, 
  .header-top .custom, 
  .header-top .mod-languages {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
  }

  /* Stops the phone number and email from squeezing and stacking vertically */
  .header-top p, 
  .header-top span, 
  .header-top a {
    white-space: nowrap !important;
    margin: 0 !important;
    font-size: 15px !important;
  }

  /* Makes the language flags sit nicely side-by-side */
  .header-top .mod-languages ul {
    display: flex !important;
    gap: 15px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }

  /* Fixes the search bar width so it looks modern and fits the screen */
  .header-top .search, 
  .header-top form {
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
  }
}

/* =========================================
   GLOBAL DARK MODE (HEADER, BODY, FOOTER)
   ========================================= */

/* 1. Make the entire website background dark */
body {
    background-color: #050b14 !important;
    color: #94a3b8 !important;
}

/* Remove white backgrounds from the main content wrappers */
#main, .main-content, .item-page, .container {
    background-color: transparent !important;
}

/* 2. Dark Navigation Bar (Header) */
.site-header, 
.header-top,
.header-utility {
    background-color: #080f1e !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Make nav links light gray and turn blue on hover */
.site-header a, 
.header-top a,
ul.menu li a {
    color: #cbd5e1 !important;
    transition: color 0.3s ease !important;
}

ul.menu li a:hover,
.site-header a:hover {
    color: #60a5fa !important;
}

/* 3. Dark Footer to blend seamlessly */
footer, 
.footer, 
#footer, 
.footer-wrapper {
    background-color: #050b14 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #94a3b8 !important;
}

footer a, .footer a {
    color: #cbd5e1 !important;
}

footer a:hover, .footer a:hover {
    color: #60a5fa !important;
}

/* Fix the "You are here" Breadcrumbs */
.breadcrumb {
    background: transparent !important;
    color: #94a3b8 !important;
}
.breadcrumb a {
    color: #60a5fa !important;
}



/* =========================================
   FIX WHITE MENU ANOMALIES
   ========================================= */

/* 1. Remove the white background from the Active Menu Item ("Home") */
.site-header ul.menu li.active > a, 
.site-header ul.menu li.current > a,
.site-header ul.menu li.current.active > a {
    background-color: transparent !important;
    background: none !important;
    color: #60a5fa !important; /* Highlights active text in XAPI Light Blue instead */
    box-shadow: none !important;
    border: none !important;
}

/* 2. Prevent white backgrounds on hover/focus */
.site-header ul.menu li > a:hover,
.site-header ul.menu li > a:focus {
    background-color: transparent !important;
    background: none !important;
}

/* 3. Fix the white boxes around the language flags */
.header-top .mod-languages a,
.header-top .mod-languages img,
.header-top .mod-languages div {
    background-color: transparent !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

/* 4. Fix dropdown sub-menus (just in case they are still white) */
.site-header ul.menu ul,
.site-header ul.menu ul li {
    background-color: #080f1e !important; /* Dark background */
    border: none !important;
}
.site-header ul.menu ul li a {
    color: #cbd5e1 !important;
    background: transparent !important;
}



/* =========================================
   PREMIUM BENTO BOX FOOTER UPGRADE
   ========================================= */

/* 1. Wrap the footer in a sleek, frosted dark container */
.gallery-band {
    background: radial-gradient(circle at bottom, #0f1c35 0%, #050b14 80%) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 24px !important;
    max-width: 1200px !important;
    margin: 40px auto !important;
    padding: 60px 40px 40px 40px !important;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.4) !important;
}

/* 2. Style the image gallery grid so the thumbnails look like floating cards */
.gallery-band-images img {
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}
.gallery-band-images img:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(96, 165, 250, 0.5) !important;
    box-shadow: 0 10px 25px rgba(29, 77, 140, 0.3) !important;
}

/* 3. Typography & "ABOUT OUR COMPANY" Heading */
.gallery-band-about h4 {
    color: #ffffff !important;
    font-family: var(--font-h1) !important;
    font-size: 34px !important;
    font-weight: normal !important;
    letter-spacing: 1px !important;
    margin-bottom: 20px !important;
}

.gallery-band-about p,
.gallery-band-about p.lead {
    color: #94a3b8 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

.gallery-band-about p i {
    color: #60a5fa !important; /* XAPI Light Blue icons */
}

/* 4. Bottom Menu Links (Turned into clean floating pills) */
.site-footer {
    background-color: transparent !important;
    padding: 20px 0 40px 0 !important;
}

.footer-menu {
    display: flex !important;
    justify-content: center !important;
}

.footer-menu ul.menu {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.footer-menu ul.menu li {
    border-right: none !important; /* Removes the old ugly vertical lines */
    padding: 0 10px !important;
}

.footer-menu ul.menu li a {
    color: #cbd5e1 !important;
    font-family: var(--font-h2-menu) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: color 0.3s ease !important;
}

.footer-menu ul.menu li a:hover {
    color: #60a5fa !important;
}

/* 5. Copyright Section */
.footer-copyright {
    border-top: none !important;
    color: #64748b !important;
    font-size: 13px !important;
    margin-top: 20px !important;
}

/* =========================================
   TEXT COLOR TWEAKS FOR FOOTER BENTO BOX
   ========================================= */

/* 1. Brighter Body Text & Paragraphs */
.gallery-band-about p,
.gallery-band-about p.lead {
    color: #cbd5e1 !important; /* Brighter, perfectly readable light slate */
    font-size: 14px !important;
    line-height: 1.7 !important;
}

/* 2. Highlight Contact Details (Address, Phone, Fax labels) */
.gallery-band-about address, 
.gallery-band-about .contact-info,
.gallery-band-about p:has(i) {
    color: #e2e8f0 !important; /* Slightly brighter for the contact lines */
}

/* 3. Icons Color (XAPI Light Blue accent) */
.gallery-band-about p i {
    color: #60a5fa !important; 
}

/* 4. Footer Menu Links Brighter */
.footer-menu ul.menu li a {
    color: #cbd5e1 !important;
}
.footer-menu ul.menu li a:hover {
    color: #60a5fa !important;
}

/* 5. Copyright Text */
.footer-copyright {
    color: #94a3b8 !important; /* Soft muted gray for copyright */
}


/* =========================================
   RESTORED: SHAPES (12px) & PREMIUM LIFT
   ========================================= */

/* 1. Base Shape & Transition (Search Bar & All Global Buttons) */
button, 
input[type="submit"], 
input[type="button"], 
.btn, 
a.btn, 
.button,
a.button,
.v1-link-btn,
.v1-pdf-btn,
.aesthetic-btn,
a.aesthetic-btn,
#contact-form button[type="submit"],
.header-top input[type="search"], 
.header-top input[type="text"] {
    border-radius: 12px !important; /* Matches Explore button */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    will-change: transform, box-shadow; 
}

/* Ensure Buttons flex properly so text is centered */
button, input[type="submit"], input[type="button"], .btn, a.btn, .button, a.button {
    display: inline-flex !important; 
    align-items: center; 
    justify-content: center;
}

/* 2. Premium Lift Hover Effect */
button:hover, 
input[type="submit"]:hover, 
input[type="button"]:hover, 
.btn:hover, 
a.btn:hover,
.button:hover,
a.button:hover,
.v1-link-btn:hover,
.v1-pdf-btn:hover,
.aesthetic-btn:hover,
a.aesthetic-btn:hover,
#contact-form button[type="submit"]:hover {
    transform: translateY(-3px) !important; /* Lifts up off the page */
    box-shadow: 0 10px 25px rgba(29, 77, 140, 0.25) !important; /* Glowing shadow */
    background-color: #ac232f !important; /* Snaps to XAPI Brand Red */
    color: #ffffff !important;
    border-color: #ac232f !important;
}

/* 3. Button Active/Click State (Snaps back down) */
button:active, 
input[type="submit"]:active, 
input[type="button"]:active, 
.btn:active, 
a.btn:active,
.button:active,
a.button:active,
.v1-link-btn:active,
.v1-pdf-btn:active,
.aesthetic-btn:active,
a.aesthetic-btn:active,
#contact-form button[type="submit"]:active {
    transform: translateY(0) !important; 
    box-shadow: 0 2px 8px rgba(29, 77, 140, 0.15) !important; 
}

/* Search button specific hover */
.header-top button:hover, 
.header-top input[type="submit"]:hover { 
    background-color: #ffffff !important; 
    color: #ac232f !important; 
    transform: translateY(-2px) !important; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important; 
}

/* 4. Breadcrumb Badges (12px) */
.mod-breadcrumbs__here,
.mod-breadcrumbs__item a,
.mod-breadcrumbs__item.active span {
    border-radius: 12px !important;
}

/* =========================================
   RESTORED: ALIGNMENT AND MENU FIXES
   ========================================= */

/* Hide the hamburger menu on Desktop */
@media (min-width: 901px) {
    .nav-toggle, 
    button.nav-toggle, 
    .offcanvas-toggle,
    #offcanvas-toggler {
        display: none !important;
    }
}

/* Fix the Search Box & Button Alignment in the Top Bar */
.header-top form,
.header-top .mod-search,
.header-top .search {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.header-top input[type="search"], 
.header-top input[type="text"] {
    margin: 0 !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

.header-top button, 
.header-top input[type="submit"], 
.header-top .btn {
    margin: 0 0 0 10px !important; /* Perfect 10px gap between input and button */
    vertical-align: middle !important;
}

/* =========================================
   SUBPAGE TOP BAR FIX & BREADCRUMB HOVER FIX
   ========================================= */

/* 1. Force the Top Bar to match the Nav Bar color */
html body .header-top,
html body .site-header .header-top {
    background-color: #080f1e !important; 
    background: #080f1e !important;
    box-shadow: 100vmax 0 0 0 #080f1e, -100vmax 0 0 0 #080f1e !important; 
    border-bottom: none !important;
}

/* 2. CRITICAL FIX: Make spans inline-block so they can physically lift! */
.mod-breadcrumbs__here,
.mod-breadcrumbs__item.active span {
    display: inline-block !important; /* Required for the lift effect to work */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    will-change: transform, box-shadow;
    cursor: default !important;

}

/* 3. The Hover Effects */
.mod-breadcrumbs__here:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(29, 77, 140, 0.5) !important; /* Blue glow */
}

.mod-breadcrumbs__item.active span:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(172, 35, 47, 0.5) !important; /* Red glow */
}




.product-content h4 {
    font-family: var(--font-h1) !important; /* Switches to HelveticaNeue-ThinCond */
    font-size: 24px !important;            /* Slightly larger for impact */
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: #ffffff !important;
    margin-top: 0;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.product-content p {
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important; /* Ensures crisp, non-blurry text rendering */
    color: #94a3b8 !important;    /* Keeps the readable light slate tone */
    line-height: 1.65 !important;
    letter-spacing: 0.2px !important; /* Slight tracking for technical legibility */
    margin-bottom: 25px;
    flex-grow: 1;
}


/* =========================================
   NAVIGATION BAR - PREMIUM BLUE GLOW UPGRADE
   ========================================= */

/* 1. Give the Header Main a subtle frosted Bento styling and ambient blue glow */
.header-main {
    background: linear-gradient(145deg, rgba(8, 15, 30, 0.95) 0%, rgba(10, 19, 38, 0.95) 100%) !important;
    border-bottom: 1px solid rgba(96, 165, 250, 0.2) !important;
    box-shadow: 0 15px 40px rgba(29, 77, 140, 0.2) !important;
    border-radius: 0 0 16px 16px;
    margin-bottom: 25px;
    padding: 20px 30px !important;
}

/* 2. Elevate the Header Top utility bar with a clean separator shadow */
.header-top {
    border-bottom: 1px solid rgba(96, 165, 250, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

/* 3. Enhance Nav Items Hover & Active State with a Rich Blue Glow */
.main-nav ul.mod-menu > li.nav-item > a:hover,
.main-nav ul.mod-menu > li.nav-item.active > a,
.main-nav ul.mod-menu > li.nav-item.current > a {
    color: #60a5fa !important;
    background-color: rgba(96, 165, 250, 0.08) !important; /* Richer frosted blue tint */
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.25) !important; /* Distinct blue glow */
    border-radius: 12px 12px 0 0 !important;
}

/* 4. Dropdown Menus with matching Bento gradient and blue border glow */
.main-nav ul.mod-menu li.nav-item ul {
    background: linear-gradient(145deg, #080f1e 0%, #0a1326 100%) !important;
    border: 1px solid rgba(96, 165, 250, 0.2) !important;
    border-top: 3px solid #ac232f !important; /* Retained XAPI Red accent */
    box-shadow: 0 20px 50px rgba(29, 77, 140, 0.4) !important;
    border-radius: 0 0 12px 12px !important;
}

.main-nav ul.mod-menu li.nav-item ul li a:hover {
    color: #60a5fa !important;
    background: rgba(96, 165, 250, 0.1) !important;
}

/* =========================================
   UNIFIED SINGLE FLOATING CAPSULE HEADER
   ========================================= */

/* 1. Make the entire site-header a single cohesive floating capsule container */
.site-header {
    background: linear-gradient(145deg, rgba(8, 15, 30, 0.88) 0%, rgba(10, 19, 38, 0.88) 100%) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(96, 165, 250, 0.25) !important;
    border-radius: 24px !important; /* Unified rounded Bento capsule */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(29, 77, 140, 0.25) !important;
    max-width: 1150px !important;
    margin: 20px auto !important;
    padding: 15px 25px !important;
    position: relative;
    width: 100% !important;
    z-index: 1000;
}

/* 2. Top utility bar sits cleanly inside the top of the capsule */
.header-top {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    padding: 4px 10px 12px 10px !important;
    margin-bottom: 10px;
    min-height: auto !important;
}

/* 3. Main navigation row sits inside the bottom of the capsule */
.header-main {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 5px 10px !important;
    border-radius: 0 !important;
}

/* =========================================
   REDUCE SPACE BETWEEN NAVBAR & BREADCRUMBS
   ========================================= */
.site-header {
    margin-bottom: 5px !important; /* Reduces the bottom space of the floating capsule */
}

.mod-breadcrumbs__wrapper {
    margin-top: 5px !important; /* Reduces the top space above the breadcrumbs */
}


/* ==========================================================================
   JOOMLA SMART SEARCH (COM_FINDER) & AUTOCOMPLETE - DARK THEME
   ========================================================================== */

/* 1. Main Search Container */
.finder {
  background: linear-gradient(145deg, #080f1e 0%, #0a1326 100%) !important;
  border: 1px solid rgba(96, 165, 250, 0.2) !important;
  border-radius: 16px !important;
  padding: 50px !important;
  box-shadow: 0 15px 40px rgba(29, 77, 140, 0.25) !important;
  color: #94a3b8 !important;
  max-width: 1000px;
  margin: 40px auto !important;
  transition: all 0.3s ease;
}

.finder:hover {
  box-shadow: 0 20px 50px rgba(29, 77, 140, 0.4) !important;
  border-color: rgba(96, 165, 250, 0.3) !important;
}

/* Hide default ugly labels */
.finder legend,
.finder label[for^="finder-search"],
.finder label[for="q"] {
  display: none !important;
}

/* 2. Inputs */
.finder input[type="text"],
.finder input[type="search"],
.finder input[name="q"],
.finder .search-query {
  width: 100% !important;
  max-width: 400px !important;
  padding: 15px 20px !important;
  font-size: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease !important;
  margin: 0 15px 20px 0 !important;
  box-sizing: border-box;
  display: inline-block !important;
  vertical-align: middle !important;
}

.finder input[type="text"]:focus,
.finder input[type="search"]:focus,
.finder input[name="q"]:focus {
  border-color: #60a5fa !important;
  outline: none !important;
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.2) !important;
  background: rgba(0, 0, 0, 0.4) !important;
}

/* 3. Buttons (Primary Red & Secondary Glass) */
.finder button,
.finder input[type="submit"],
.finder input[type="button"],
.finder .btn {
  padding: 15px 30px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #cbd5e1 !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 10px 20px 0 !important;
}

.finder button:hover,
.finder input[type="button"]:hover,
.finder .btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  transform: translateY(-3px) !important;
}

/* Primary Search Button Override */
.finder button.btn-primary,
.finder button[type="submit"],
.finder input[type="submit"] {
  background-color: #ac232f !important;
  border-color: #c92a37 !important;
  color: #ffffff !important;
}

.finder button.btn-primary:hover,
.finder button[type="submit"]:hover,
.finder input[type="submit"]:hover {
  background-color: #c92a37 !important;
  box-shadow: 0 10px 25px rgba(172, 35, 47, 0.4) !important;
}

/* 4. Instructions / Hints (Bento Boxes) */
.finder p, 
.finder .finder-hints {
  color: #cbd5e1 !important;
  line-height: 1.7 !important;
  font-size: 15px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-left: 4px solid #1d4d8c !important;
  padding: 20px 25px !important;
  border-radius: 8px !important;
  margin-bottom: 15px !important;
  transition: all 0.3s ease;
}

.finder p:hover,
.finder .finder-hints:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  border-left-color: #60a5fa !important;
  transform: translateX(5px);
}

.finder p strong,
.finder b {
  color: #ffffff !important;
  font-weight: 700;
}

/* 5. Filters Layout & Select Menus */
.finder fieldset {
  border: none !important;
  margin-top: 40px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 40px 0 0 0 !important;
}

#finder-filter-select-window {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.finder label.filter-label,
.finder .control-label {
  font-family: var(--font-h1), inherit !important;
  font-weight: 600 !important;
  color: #60a5fa !important;
  font-size: 15px !important;
  margin-bottom: 10px !important;
  display: block !important;
}

.finder select {
  width: 100% !important;
  padding: 14px 20px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(0, 0, 0, 0.3) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  margin-bottom: 20px !important;
  display: block !important;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 20px top 50%;
  background-size: 12px auto;
  transition: all 0.3s ease;
}

.finder select:focus,
.finder select:hover {
  border-color: #60a5fa !important;
  outline: none !important;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.15) !important;
}

.finder select option {
  background-color: #0a1326 !important;
  color: #ffffff !important;
}

/* 6. Search Results Formatting */
.search-results, 
.finder-results {
  list-style: none !important;
  padding: 0 !important;
  margin-top: 40px !important;
}

.finder-results li {
  padding: 25px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.result-title, 
.finder-results h4 {
  font-family: var(--font-h1) !important;
  font-size: 22px !important;
  margin: 0 0 10px 0 !important;
}

.result-title a,
.finder-results h4 a {
  color: #60a5fa !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.result-title a:hover,
.finder-results h4 a:hover {
  color: #93c5fd !important;
}

.result-text,
.finder-results .result-text {
  color: #94a3b8 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* ==========================================================================
   7. SMART SEARCH AUTOCOMPLETE (AWESOMPLETE) OVERRIDE
   ========================================================================== */

/* Main Dropdown Container */
div.awesomplete > ul {
  background: linear-gradient(145deg, #080f1e 0%, #0a1326 100%) !important;
  border: 1px solid rgba(96, 165, 250, 0.3) !important;
  border-top: 3px solid #ac232f !important;
  border-radius: 0 0 12px 12px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(29, 77, 140, 0.3) !important;
  margin-top: 8px !important;
  padding: 8px 0 !important;
  z-index: 9999 !important;
}

/* Remove default white pointer/rhombus */
div.awesomplete > ul::before,
div.awesomplete > ul::after {
  display: none !important;
}

/* Suggestion List Items */
div.awesomplete > ul > li {
  color: #cbd5e1 !important;
  background: transparent !important;
  padding: 12px 20px !important;
  font-size: 14px !important;
  font-family: var(--font-body), sans-serif !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

div.awesomplete > ul > li:last-child {
  border-bottom: none !important;
}

/* Hover & Keyboard Select */
div.awesomplete > ul > li:hover,
div.awesomplete > ul > li[aria-selected="true"] {
  background: rgba(96, 165, 250, 0.1) !important;
  color: #60a5fa !important;
  padding-left: 25px !important; /* Gentle right shift */
}

/* Kill yellow highlighter, replace with glowing white text */
div.awesomplete > ul > li mark,
div.awesomplete > ul > li [data-word] {
  background: transparent !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3) !important;
  padding: 0 !important;
}

/* =========================================
   PURE CSS: TIGHTER PILLS & BORDER GLOW
   ========================================= */

/* 1. Fix the Module Container & Reduce Gap */
.mod-languages, 
.header-top .mod-languages {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 6px !important; /* Pulls elements tighter together */
}

.mod-languages ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important; /* Pulls list items tighter together */
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Force the Flag Container (The Glass Pill) */
.mod-languages a, 
.header-top a:has(img[src*="de"]),
.header-top a:has(img[src*="en"]),
.header-top a:has(img[src*="gb"]) {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important; /* Slightly tighter internal padding */
    margin: 0 3px !important; /* Greatly reduced outside margin */
    height: 36px !important; 
    min-height: 36px !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.05) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important; 
    border-radius: 12px !important; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    text-decoration: none !important;
}

/* 3. Force the Flag Images */
.mod-languages a img,
.header-top a img[src*="de"],
.header-top a img[src*="en"],
.header-top a img[src*="gb"] {
    display: block !important;
    width: 24px !important;
    min-width: 24px !important;
    height: 16px !important; 
    min-height: 16px !important;
    max-height: 16px !important;
    object-fit: cover !important; 
    border-radius: 2px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important; /* Subtle base border on the flag */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

/* 4. Hover Effect for ALL flags */
.mod-languages a:hover,
.header-top a:has(img[src*="de"]):hover,
.header-top a:has(img[src*="en"]):hover,
.header-top a:has(img[src*="gb"]):hover {
    background: rgba(96, 165, 250, 0.1) !important; 
    border-color: rgba(96, 165, 250, 0.6) !important; 
    transform: translateY(-3px) !important; 
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.3) !important;
}

/* =========================================
   PURE CSS: TIGHTER PILLS & FLAG-ONLY GLOW
   ========================================= */

/* 1. Fix the Module Container & Reduce Gap */
.mod-languages, 
.header-top .mod-languages {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 6px !important; /* Pulls elements tighter together */
}

.mod-languages ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important; /* Pulls list items tighter together */
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Force the Flag Container (The Glass Pill) */
.mod-languages a, 
.header-top a:has(img[src*="de"]),
.header-top a:has(img[src*="en"]),
.header-top a:has(img[src*="gb"]) {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important; /* Slightly tighter internal padding */
    margin: 0 3px !important; /* Greatly reduced outside margin */
    height: 36px !important; 
    min-height: 36px !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.05) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important; 
    border-radius: 12px !important; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    text-decoration: none !important;
}

/* 3. Force the Flag Images */
.mod-languages a img,
.header-top a img[src*="de"],
.header-top a img[src*="en"],
.header-top a img[src*="gb"] {
    display: block !important;
    width: 24px !important;
    min-width: 24px !important;
    height: 16px !important; 
    min-height: 16px !important;
    max-height: 16px !important;
    object-fit: cover !important; 
    border-radius: 2px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important; /* Subtle base border on the flag */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

/* 4. Hover Effect for ALL flags */
.mod-languages a:hover,
.header-top a:has(img[src*="de"]):hover,
.header-top a:has(img[src*="en"]):hover,
.header-top a:has(img[src*="gb"]):hover {
    background: rgba(96, 165, 250, 0.1) !important; 
    border-color: rgba(96, 165, 250, 0.6) !important; 
    transform: translateY(-3px) !important; 
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.3) !important;
}

/* =========================================
   PURE CSS: INVISIBLE CAPSULE & FLAG-ONLY GLOW
   ========================================= */

/* 1. Fix the Module Container & Reduce Gap */
.mod-languages, 
.header-top .mod-languages {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important; /* Space between the flags */
}

.mod-languages ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Make the Flag Container Invisible (Removes the outer capsule) */
.mod-languages a, 
.header-top a:has(img[src*="de"]),
.header-top a:has(img[src*="en"]),
.header-top a:has(img[src*="gb"]) {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px !important; /* Just enough padding to catch clicks easily */
    margin: 0 !important;
    background: transparent !important; /* Hides the dark background */
    border: none !important; /* Removes the container border */
    box-shadow: none !important; /* Removes the container shadow */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    text-decoration: none !important;
}

/* 3. Force the Flag Images to be crisp */
.mod-languages a img,
.header-top a img[src*="de"],
.header-top a img[src*="en"],
.header-top a img[src*="gb"] {
    display: block !important;
    width: 24px !important;
    min-width: 24px !important;
    height: 16px !important; 
    min-height: 16px !important;
    max-height: 16px !important;
    object-fit: cover !important; 
    border-radius: 2px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important; /* Subtle base border directly on the flag */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

/* 4. Hover Effect directly on the Flag Image */
.mod-languages a:hover img,
.header-top a:has(img[src*="de"]):hover img,
.header-top a:has(img[src*="en"]):hover img,
.header-top a:has(img[src*="gb"]):hover img {
    transform: translateY(-3px) !important; 
    border-color: rgba(96, 165, 250, 0.8) !important; 
    box-shadow: 0 5px 15px rgba(96, 165, 250, 0.4) !important;
}

/* =========================================
   PURE CSS ACTIVE STATE (FLAG GLOW ONLY)
   ========================================= */

/* 5. Keep Container Invisible on Active State */
html[lang^="de"] .header-top a:has(img[src*="de"]),
html[lang^="en"] .header-top a:has(img[src*="en"]),
html[lang^="en"] .header-top a:has(img[src*="gb"]),
.mod-languages li.lang-active a,
.mod-languages a.active {
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important;
    transform: translateY(0) !important;
    pointer-events: none !important; 
    cursor: default !important;
}

/* 6. Active Flag Image - Applies the bright blue glow directly to the flag */
html[lang^="de"] .header-top a:has(img[src*="de"]) img,
html[lang^="en"] .header-top a:has(img[src*="en"]) img,
html[lang^="en"] .header-top a:has(img[src*="gb"]) img,
.mod-languages li.lang-active a img,
.mod-languages a.active img {
    border: 1px solid rgba(96, 165, 250, 0.9) !important;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.8) !important;
}

/* 7. Hide the red dot entirely */
.mod-languages a::after,
.header-top a:has(img[src*="de"])::after,
.header-top a:has(img[src*="en"])::after {
    display: none !important;
}

/* =========================================
   CRITICAL MOBILE HEADER & BANNER FIXES
   ========================================= */

@media (max-width: 900px) {
    /* 1. Add top padding to pull the flags down into the visible screen */
    .site-header {
        padding: 20px 15px 15px 15px !important;
        border-radius: 0 0 20px 20px !important; 
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* 2. Clean up the top utility bar and REMOVE ALL horizontal lines */
    .header-top {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px 20px !important;
        padding: 0 0 15px 0 !important;
        margin-bottom: 10px !important;
        border-bottom: none !important; /* Removes the bottom-most line */
    }

    /* Kill all default mobile template borders between the stacked items */
    .header-top > div,
    .header-top .module,
    .header-top .custom {
        border: none !important;
        box-shadow: none !important;
    }
    
    .header-top .mod-languages {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .header-utility {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        width: 100% !important;
    }
    
    .header-top .search, 
    .header-top form {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        display: flex !important;
        margin-top: 5px !important;
    }
    
    .header-top input[type="search"], 
    .header-top input[type="text"] {
        flex-grow: 1 !important;
        max-width: 280px !important;
    }

    /* 3. HERO SLIDER BANNER FIX FOR LONG GERMAN WORDS */
    .xapi-hero-slider-container { 
        padding: 50px 15px 40px 15px !important; 
        max-width: 100vw !important; /* Stops the container from stretching off-screen */
        box-sizing: border-box !important;
    }

    .hero-slides-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-slide h1 {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        
        /* These properties keep the font size big, but forcefully break "FERTIGUNGSAUTOMATISIERUNG" so it stays centered */
        overflow-wrap: anywhere !important; 
        word-break: break-word !important; 
        -webkit-hyphens: auto !important;
        hyphens: auto !important;
    }
    
    .hero-slide p {
        width: 100% !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
    }
}
/* =========================================
   CRITICAL MOBILE MENU DROPDOWN FIXES
   ========================================= */

@media (max-width: 900px) {
    
    /* 1. Stack the main menu items vertically */
    html body .main-nav ul.mod-menu {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    /* 2. Force the parent <li> to stack its children vertically */
    html body .main-nav ul.mod-menu > li.nav-item {
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 3. Make the main links full width and centered */
    html body .main-nav ul.mod-menu > li.nav-item > a {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 14px 20px !important;
        border-radius: 8px !important;
        transform: none !important; 
        box-sizing: border-box !important;
        border: 1px solid transparent !important;
        outline: none !important;
        transition: all 0.3s ease !important;
    }

    html body .main-nav ul.mod-menu > li.nav-item > a::before {
        display: none !important;
    }

   /* 3b. PARENT LINK GLOW (Keeps "Company" lit up with an OUTER glow when open!) */
    html body .main-nav ul.mod-menu > li.nav-item > a:hover,
    html body .main-nav ul.mod-menu > li.nav-item > a:focus,
    html body .main-nav ul.mod-menu > li.nav-item:hover > a,
    html body .main-nav ul.mod-menu > li.nav-item:focus-within > a,
    html body .main-nav ul.mod-menu > li.nav-item.show > a,
    html body .main-nav ul.mod-menu > li.nav-item.open > a,
    html body .main-nav ul.mod-menu > li.nav-item:has(ul:hover) > a,
    html body .main-nav ul.mod-menu > li.nav-item:has(ul:focus-within) > a {
        background-color: rgba(96, 165, 250, 0.15) !important;
        border: 1px solid rgba(96, 165, 250, 0.8) !important; /* Brighter blue border */
        /* ADDED OUTER GLOW + INNER GLOW */
        box-shadow: 0 0 15px rgba(96, 165, 250, 0.4), inset 0 0 10px rgba(96, 165, 250, 0.2) !important;
        color: #60a5fa !important;
    }

    /* 4. Fix the Dropdown Box layout (Adds a soft blue glow to the sub-section box) */
    html body .main-nav ul.mod-menu li.nav-item ul {
        position: static !important; 
        width: 100% !important;
        border-top: none !important;
        border: 1px solid rgba(96, 165, 250, 0.25) !important; /* Soft blue border instead of grey */
        border-radius: 8px !important;
        margin: 5px 0 0 0 !important;
        background: rgba(0, 0, 0, 0.4) !important;
        /* Subtle blue outer glow for the dropdown box itself */
        box-shadow: 0 5px 20px rgba(96, 165, 250, 0.15), inset 0 5px 15px rgba(0,0,0,0.6) !important;
        padding: 6px !important; 
        box-sizing: border-box !important;
    }    /* 5. Center and style the sub-links */
    html body .main-nav ul.mod-menu li.nav-item ul li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    html body .main-nav ul.mod-menu li.nav-item ul li:last-child {
        border-bottom: none !important;
    }

    html body .main-nav ul.mod-menu li.nav-item ul li a {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        padding: 14px 20px !important;
        color: #94a3b8 !important;
        box-sizing: border-box !important;
        background: transparent !important;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important; /* Silky transition for the lift */
        outline: none !important;
        border-radius: 6px !important; /* Needed so the hovered item looks like a rounded button */
    }

    /* 6. PREMIUM SUB-LINK HOVER & LIFT UP EFFECT */
    html body .main-nav ul.mod-menu li.nav-item ul li a:hover,
    html body .main-nav ul.mod-menu li.nav-item ul li a:focus,
    html body .main-nav ul.mod-menu li.nav-item ul li.active > a,
    html body .main-nav ul.mod-menu li.nav-item ul li.current > a {
        background-color: rgba(96, 165, 250, 0.15) !important;
        color: #60a5fa !important;
        /* Adds the blue edges AND a shadow below it to make it pop out */
        box-shadow: inset 4px 0 0 #60a5fa, inset -4px 0 0 #60a5fa, 0 6px 15px rgba(0,0,0,0.4) !important; 
        transform: translateY(-3px) !important; /* LIFTS THE ITEM UP! */
        position: relative !important;
        z-index: 10 !important;
        border: 1px solid rgba(96, 165, 250, 0.3) !important; 
    }
}/* =========================================
       PREMIUM MOBILE HAMBURGER MENU FIX
       ========================================= */
       
/* =========================================
   CRITICAL DESKTOP FIX: HIDE HAMBURGER
   ========================================= */
@media (min-width: 901px) {
    html body .nav-toggle, 
    html body .navbar-toggler,
    html body button.nav-toggle {
        display: none !important;
    }
}

    /* 1. Base Hamburger Button Style (Frosted Glass) */
    html body .nav-toggle, 
    html body .navbar-toggler,
    html body button.nav-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px !important;
        padding: 10px 12px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        margin-left: auto !important; 
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
        outline: none !important;
    }

    /* 2. Make the 3 Lines Highly Visible */
    html body .nav-toggle-bar,
    html body .navbar-toggler-icon,
    html body .nav-toggle span {
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        background-color: #cbd5e1 !important; /* Bright slate gray for visibility */
        border-radius: 2px !important;
        transition: all 0.3s ease !important;
        margin: 0 !important;
        box-shadow: none !important;
    }

    /* 3. Hover & Opened State (Premium XAPI Blue Glow) */
    html body .nav-toggle:hover,
    html body .nav-toggle:focus,
    html body .nav-toggle.is-active,
    html body .nav-toggle[aria-expanded="true"] {
        background-color: rgba(96, 165, 250, 0.15) !important; /* Blue Tint */
        border: 1px solid #60a5fa !important; /* Solid Blue Border */
        /* Sharp outer glow + inner glow */
        box-shadow: 0 0 15px rgba(96, 165, 250, 0.5), inset 0 0 8px rgba(96, 165, 250, 0.2) !important;
        transform: translateY(-2px) !important;
    }

    /* 4. Make lines glow white when the menu is active */
    html body .nav-toggle:hover .nav-toggle-bar,
    html body .nav-toggle:focus .nav-toggle-bar,
    html body .nav-toggle.is-active .nav-toggle-bar,
    html body .nav-toggle[aria-expanded="true"] .nav-toggle-bar,
    html body .nav-toggle:hover span,
    html body .nav-toggle.is-active span {
        background-color: #ffffff !important;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.8) !important;
    }


/* =========================================
   CRITICAL DESKTOP FIX: HIDE HAMBURGER
   ========================================= */
@media (min-width: 901px) {
    html body .nav-toggle, 
    html body .navbar-toggler,
    html body button.nav-toggle {
        display: none !important;
    }
}

/* =========================================
   UNIFIED PAGE BACKGROUND (#0c1628)
   Matches homepage background on every page
   ========================================= */
html,
body {
    background-color: #0c1628 !important;
}

footer,
.footer,
#footer,
.footer-wrapper,
.site-footer {
    background-color: #0c1628 !important;
}


/* =========================================
   "ÜBER UNSERE FIRMA" BAND — matches #0c1628 page
   ========================================= */
.gallery-band {
    background: radial-gradient(circle at top, #162746 0%, #0f1c33 80%) !important;
    border: 1px solid rgba(96, 165, 250, 0.2) !important;
    box-shadow: 0 10px 35px rgba(29, 77, 140, 0.25), 0 0 20px rgba(96, 165, 250, 0.08) !important;
}

/* =========================================
   COMPLEMENT #0c1628 — HEADER, MENUS, FORMS
   ========================================= */

/* Header capsule */
.site-header {
    background: linear-gradient(145deg, rgba(19, 34, 61, 0.92) 0%, rgba(22, 39, 70, 0.92) 100%) !important;
}

/* Dropdown menus */
.main-nav ul.mod-menu li.nav-item ul {
    background: linear-gradient(145deg, #13223d 0%, #162746 100%) !important;
}

/* Contact form card + inputs */
#contact-form {
    background: linear-gradient(145deg, #13223d 0%, #162746 100%) !important;
}
#contact-form:hover {
    background: linear-gradient(145deg, #172a4a 0%, #1a2e52 100%) !important;
}
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    background-color: #0c1628 !important;
}

/* Search page + autocomplete */
.finder {
    background: linear-gradient(145deg, #13223d 0%, #162746 100%) !important;
}
.finder select option {
    background-color: #13223d !important;
}
div.awesomplete > ul {
    background: linear-gradient(145deg, #13223d 0%, #162746 100%) !important;
}

/* =========================================
   HEADER TOP BAR — fully blended into the capsule
   ========================================= */
html body .site-header .header-top {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: 1px solid rgba(96, 165, 250, 0.12) !important;
    border-radius: 0 !important;
}

/* Remove boxes and stray underlines from everything inside the bar */
html body .site-header .header-top div,
html body .site-header .header-top ul,
html body .site-header .header-top li,
html body .site-header .header-top p,
html body .site-header .header-top span,
html body .site-header .header-top .mod-languages,
html body .site-header .header-top .mod-languages a {
    background: transparent !important;
    box-shadow: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* Search field: soft tint of the capsule colour */
html body .site-header .header-top input[type="search"],
html body .site-header .header-top input[type="text"] {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(96, 165, 250, 0.2) !important;
}