/* =========================
   ROOT VARIABLES
========================= */

:root {
  --brand-primary: #111111;
  --brand-secondary: #475569;
  --brand-white: #FFFFFF;
  --brand-accent: #F17720;
  --brand-border: #DADCE2;
  --brand-blue: #004A8D;
  --bs-primary: #004A8D;
  --bs-warning: #F17720;
  --brand-bg-dark: #181818;
}

/* =========================
   GLOBAL / UTILITIES
========================= */

.debug-show {
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* Development helper classes for the chat container:
   - Add `chat-dev-hidden` to the chat container to hide it during development.
   - Add `chat-dev-visible` to force it visible (overrides inline styles). */

.chat-dev-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.chat-dev-visible {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 4 !important;
}

.footer-dark * {
  color: #ffffff !important;
}

/* Footer link hover uses brand accent while preserving existing white text */

.footer-dark a:hover, .footer-dark .link-body-emphasis:hover {
  color: var(--brand-accent) !important;
  text-decoration: none;
}

/* Navbar buttons and links: use brand accent on hover while preserving existing styles */

.navbar .btn:hover, .navbar .nav-link:hover, .navbar .nav-item .btn:hover, .navbar .nav-item .nav-link:hover, .nav-item .btn:hover, .nav-compact .nav-link:hover {
  color: var(--brand-accent) !important;
  background-color: transparent !important;
  border-color: var(--brand-accent) !important;
  text-decoration: none;
}

/* Social media icons in navbar: highlight orange on hover */

.navbar a icon {
  transition: color 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  display: inline-block;
}

.navbar a:hover icon {
  filter: brightness(0) saturate(100%) invert(62%) sepia(73%) saturate(1337%) hue-rotate(10deg) brightness(104%) contrast(103%);
  transform: scale(1.15);
}

/* Language selector: English (accent) and French (accent) hover
   - include navbar-prefixed rules to ensure they apply both in desktop header and in mobile menu (higher specificity)
   - use !important to override other navbar hover rules if necessary */

.navbar .lang-en:hover, .lang-en:hover {
  color: var(--brand-accent) !important;
  text-decoration: none;
}

.navbar .lang-fr:hover, .lang-fr:hover {
  color: var(--brand-accent) !important;
  text-decoration: none;
}

/* Ensure language links inherit navbar styles and remain visually consistent */

.navbar .lang-en, .navbar .lang-fr, .lang-en, .lang-fr {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}

/* Accent hover for specific inline/standalone links */

.accent-link:hover {
  color: var(--brand-accent) !important;
  text-decoration: none;
}

/* Breadcrumb links should use the brand accent on hover */

.breadcrumb a:hover, .breadcrumb a:hover span, .breadcrumb-item a:hover, .breadcrumb-item a:hover span {
  color: var(--brand-accent) !important;
  text-decoration: none;
}

.form-control::placeholder {
  color: rgba(33, 37, 41, 0.3);
  font-style: italic;
}

/* Hide .breadcrumbs on small screens, show on md and up
   Equivalent to adding the Bootstrap classes: d-none d-md-block
   This avoids editing every HTML file while achieving the same result. */

.breadcrumbs {
  display: none !important;
}

@media (min-width: 768px) {
  .breadcrumbs {
    display: block !important;
  }
}

/* =========================
   BADGE COMPONENT
   - small pill badge used across the site
   - uses existing color variables: --brand-blue, --brand-accent, --brand-border, --brand-secondary
========================= */

.custom-badge {
  background: #ffffff;
  border: 1px solid rgba(0,74,141,0.08);
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: 0 6px 18px rgba(4,33,58,0.06);
  color: var(--brand-secondary);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  vertical-align: middle;
}

.custom-badge .badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-accent);
  background: rgba(241,119,32,0.08);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  flex: 0 0 26px;
}

.custom-badge .badge-main {
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.custom-badge .badge-divider {
  width: 1px;
  height: 18px;
  background: var(--brand-border);
  display: inline-block;
  margin: 0 8px;
  align-self: center;
}

.custom-badge .badge-sub {
  color: var(--brand-secondary);
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0.95;
}

/* small responsive tweak */

@media (max-width: 575.98px) {
  .custom-badge {
    font-size: 13px;
    gap: 8px;
    padding: 5px 8px;
  }
}

@media (max-width: 575.98px) {
  .custom-badge .badge-sub {
    display: none;
  }
}

/* =========================
   BADGE COMPONENT
   - small pill badge used across the site
   - uses existing color variables: --brand-blue, --brand-accent, --brand-border, --brand-secondary
========================= */

.custom-badge {
  background: #ffffff;
  border: 1px solid rgba(0,74,141,0.08);
  border-radius: 4px;
  padding: 10px 10px;
  box-shadow: 0 6px 18px rgba(4,33,58,0.06);
  color: var(--brand-secondary);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  vertical-align: middle;
}

.custom-badge .badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-accent);
  background: rgba(241,119,32,0.08);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  flex: 0 0 26px;
}

.custom-badge .badge-main {
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.custom-badge .badge-divider {
  width: 1px;
  height: 18px;
  background: var(--brand-border);
  display: inline-block;
  margin: 0 8px;
  align-self: center;
}

.custom-badge .badge-sub {
  color: var(--brand-secondary);
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0.95;
  z-index: 0;
}

/* small responsive tweak */

@media (max-width: 575.98px) {
  .custom-badge {
    font-size: 13px;
    gap: 8px;
    padding: 5px 8px;
  }
}

@media (max-width: 575.98px) {
  .custom-badge .badge-sub {
    display: none;
  }
}

/* HERO BADGE (top-right in hero for LG and up) */

.hero-badge-2 {
  position: absolute;
  top: 160px;
  right: 20px;
  z-index: 90;
  pointer-events: auto;
}

.hero-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 90;
  pointer-events: auto;
}

/* Slightly enlarge badge styling in hero so it reads more prominently on large screens */

.hero-badge .custom-badge {
  padding: 18px 18px;
  border-radius: 4px;
  box-shadow: 0 10px 20px rgba(4,33,58,0.6);
  align-items: center;
  display: flex;
  gap: 14px;
  background: rgba(255,255,255,0.98);
  max-width: 480px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Ensure logo image inside the badge scales and stays crisp */

.hero-badge .custom-badge img {
  width: 52px;
  height: auto;
  flex: 0 0 auto;
  display: block;
}

/* make the text block stack cleanly */

.hero-badge .custom-badge .d-flex {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* subtle text sizing adjustments inside the badge to keep it readable */

.hero-badge .custom-badge small {
  display: block;
  line-height: 1;
  color: #e56b0a;
  font-size: 13px;
}

.hero-badge .custom-badge strong {
  line-height: 1;
  font-size: 16px;
  color: #0f172a;
}

/* Ensure it is hidden below LG (safety together with d-none d-lg-flex) */

@media (max-width: 991.98px) {
  .hero-badge {
    display: none !important;
  }
}

/* =========================
   TABLE: branded, rounded header with accent column
   Uses site variables: --brand-primary, --brand-white, --brand-secondary, --brand-border, --brand-accent
========================= */

.table-custom-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px;
}

.table-custom {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--brand-white);
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 6px 20px rgba(4, 33, 58, 0.06);
  font-family: Roboto, sans-serif;
}

.table-custom thead th {
  background: var(--brand-primary);
  color: var(--brand-white);
  font-weight: 700;
  font-size: 13px;
  padding: 16px 20px;
  border-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.table-custom thead th:first-child {
  border-top-left-radius: 12px;
}

.table-custom thead th:last-child {
  border-top-right-radius: 12px;
}

.table-custom tbody tr td {
  padding: 14px 20px;
  border-top: 1px solid var(--brand-border);
  color: var(--brand-secondary);
  font-size: 14px;
  vertical-align: middle;
  flex-wrap: wrap;
}

.table-custom tbody tr td:first-child {
  color: var(--brand-primary);
  font-weight: 600;
}

.table-custom tbody tr:last-child td {
  border-bottom: 0;
}

.table-custom .optional-upgrade {
  color: var(--brand-accent);
  font-weight: 700;
  white-space: nowrap;
}

/* =========================
   HIDE TOOLTIPS ON MD AND LOWER
========================= */

/* Hide all Bootstrap tooltips on MD breakpoint and below (768px and lower) */

/* Prevent tooltip initialization on table elements */

@media (max-width: 767.98px) {
  [data-bs-toggle="tooltip"], [data-bss-tooltip] {
    pointer-events: none !important;
  }
}

/* Hide all tooltip popovers */

@media (max-width: 767.98px) {
  .bs-tooltip-auto, .bs-tooltip-top, .bs-tooltip-right, .bs-tooltip-bottom, .bs-tooltip-left {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Hide tooltip container and content */

@media (max-width: 767.98px) {
  .tooltip {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@media (max-width: 767.98px) {
  .tooltip-inner {
    display: none !important;
  }
}

/* Remove hover cursor effect on tooltip elements */

@media (max-width: 767.98px) {
  .table-custom [data-bs-toggle="tooltip"], .config-pill[data-bs-toggle="tooltip"] {
    cursor: default !important;
  }
}

/* Mobile: keep table layout but reduce font-size and padding so it fits better on small screens.
   Allow horizontal scrolling if necessary. Enable word wrapping so long labels break to new lines. */

@media (max-width: 767.98px) {
  .table-custom-wrapper {
    padding: 6px;
  }
}

@media (max-width: 767.98px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 767.98px) {
  .table-custom {
    font-size: 13px;
    table-layout: fixed;
    box-shadow: 0 4px 12px rgba(4, 33, 58, 0.05);
  }
}

@media (max-width: 767.98px) {
  .table-custom thead th {
    padding: 10px 12px;
    font-size: 11px;
  }
}

@media (max-width: 767.98px) {
  .table-custom tbody tr td {
    padding: 8px 10px;
    font-size: 13px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 767.98px) {
  .table-custom tbody tr td:first-child {
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 13px;
  }
}

/* Floating search button: align with other bottom buttons on mobile */

/* Force alignment for small screens so the search button sits with the other bottom controls */

@media (max-width: 767.98px) {
  .table-custom .optional-upgrade {
    color: var(--brand-accent);
    font-weight: 700;
    font-size: 13px;
  }
}

/* =========================
   NAVBAR / HEADER
========================= */

header {
  top: 0;
  z-index: 1030;
  backdrop-filter: saturate(120%) blur(4px);
  -webkit-backdrop-filter: saturate(120%) blur(4px);
  background: rgba(255, 255, 255, 0.92);
}

.navbar {
  background: transparent;
}

.navbar-brand {
  align-items: center;
}

.menu-item {
  border-bottom: 1px solid #e6e6e6;
}

/* Make the black navigation bar sticky so it stays visible on scroll */

.mobile-menu {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background: white;
  transition: all 0.3s ease;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  overflow-y: auto;
  max-height: calc(100vh - 80px);
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.show-menu, .mobile-menu.visible-menu {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu.hidden-menu {
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--brand-blue);
  font-size: 16px;
  font-weight: 500;
}

/* =========================
   CHAT: mobile keyboard-friendly layout
   - chat wrapper uses dynamic viewport height (100dvh)
   - messages container uses column-reverse flex with overflow-y:auto
   - input row pinned to bottom
========================= */

.chat-window {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 360px;
  max-width: calc(100% - 40px);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--brand-white);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 1060;
}

/* Chat internals: stack header, messages, input */

.chat-window .chat-header {
  flex: 0 0 auto;
  padding: 12px;
  border-bottom: 1px solid var(--brand-border);
}

.chat-window .chat-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

/* Messages: newest messages remain pinned tightly above the input bar */

.chat-messages {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
}

/* Input row pinned to bottom of the chat container */

.chat-input-row {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--brand-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
}

.chat-input-row .form-control {
  flex: 1 1 auto;
}

/* Small-screen: full width and tighter inset */

@media (max-width: 575.98px) {
  .chat-window {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    border-radius: 10px;
  }
}

/* Scroll lock styles - prevent layout shift when scrollbar disappears */

html.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

body.menu-open {
  overflow: hidden;
}

/* Ensure smooth scroll restoration on all browsers */

html {
  scroll-behavior: auto;
}

.event-section-modern {
  background: linear-gradient(135deg, #f8f9fa 0%, #eef1f5 100%);
  position: relative;
  overflow: hidden;
}

.event-section-modern::before {
  content: '';
  position: absolute;
  top: 0;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 74, 141, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.event-card-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 74, 141, 0.12);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.event-logo-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 140px;
}

.event-logo {
  width: 100px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.event-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(241, 119, 32, 0.15), rgba(241, 119, 32, 0.08));
  color: var(--search-accent);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(241, 119, 32, 0.2);
}

.tag-icon {
  font-size: 14px;
}

.event-content-side {
  flex: 1;
  min-width: 0;
}

.event-header {
  margin-bottom: 1rem;
}

.event-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.5px;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-separator {
  color: rgba(0, 74, 141, 0.3);
}

.event-description {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  margin: 1rem 0;
  margin-bottom: 0.75rem;
}

.event-description strong {
  color: var(--search-accent);
  font-weight: 600;
}

.event-booth-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.booth-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, rgba(241, 119, 32, 0.08), rgba(241, 119, 32, 0.04));
  border: 2px solid rgba(241, 119, 32, 0.3);
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  min-width: 110px;
  text-align: center;
}

.booth-label {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.booth-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--search-accent);
  margin-top: 0.3rem;
}

.event-cta-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 140px;
}

.event-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.8rem;
  background: linear-gradient(135deg, var(--search-accent), rgba(var(--search-accent-rgb), 0.85));
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(var(--search-accent-rgb), 0.3);
  position: relative;
  overflow: hidden;
}

.event-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: left 0.3s ease;
}

.event-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--search-accent-rgb), 0.4);
}

.event-cta-btn:hover::before {
  left: 100%;
}

.btn-text {
  position: relative;
  z-index: 1;
}

.btn-arrow {
  position: relative;
  z-index: 1;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.event-cta-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Responsive adjustments */

@media (max-width: 1400px) {
  .event-card-wrapper {
    gap: 1.5rem;
    padding: 1.25rem;
  }
}

@media (max-width: 1400px) {
  .event-title {
    font-size: 22px;
  }
}

@media (max-width: 1200px) {
  .event-card-wrapper {
    flex-wrap: wrap;
    gap: 1.25rem;
  }
}

@media (max-width: 1200px) {
  .event-cta-side {
    justify-content: flex-start;
    min-width: auto;
  }
}

body {
  scroll-behavior: auto;
}

html.menu-open, body.menu-open {
  scroll-behavior: auto;
}

/* MOBILE: make the floating scroll-spy and category header stick to top */

/* MOBILE: Sticky header and category filters */

/* Mobile header is ~60-70px, adjust if needed */

@media (max-width: 767.98px) {
  :root {
    --mobile-header-height: 62px;
  }
}

/* Make sticky category header stick below the mobile header */

@media (max-width: 767.98px) {
  .sticky-category-header {
    position: sticky;
    top: var(--mobile-header-height);
    z-index: 1050;
    background: var(--brand-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    width: 100%;
    left: 0;
    right: 0;
  }
}

/* Mobile sticky category stripe (PROCESSING / PACKAGING / PALLETIZING buttons) */

@media (max-width: 767.98px) {
  #mobile-sticky-category-stripe {
    position: sticky;
    top: var(--mobile-header-height);
    z-index: 1045;
    background: white;
    border-bottom: 1px solid var(--brand-border);
  }
}

/* Floating scroll-spy should stack above or below the category header */

@media (max-width: 767.98px) {
  #floating-scroll-spy {
    position: sticky;
    top: calc(var(--mobile-header-height) + 90px);
    z-index: 1040;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    width: 100%;
    left: 0;
    right: 0;
  }
}

/* When floating-scroll-spy is visible and category header exists, adjust spacing */

@media (max-width: 767.98px) {
  .sticky-category-header ~ #floating-scroll-spy {
    top: calc(var(--mobile-header-height) + 70px);
  }
}

/* Ensure content below sticky elements isn't hidden */

@media (max-width: 767.98px) {
  .sticky-category-header ~ .catalog-section {
    scroll-margin-top: calc(var(--mobile-header-height) + 100px);
  }
}

.search-box {
  width: 260px;
}

/* =========================
   HERO WRAPPER / CAROUSEL
========================= */

.hero-wrapper {
  position: relative;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay-image {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-overlay-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  background: linear-gradient( to top, rgba(5, 30, 60, 0.9), rgba(5, 30, 60, 0.5) ), rgba(0, 0, 0, 0.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  background: linear-gradient( to right, rgba(5, 30, 60, 0.85), rgba(5, 30, 60, 0.0) ), rgba(0, 0, 0, 0.0);
}

.hero-text {
  position: absolute;
  z-index: 3;
  width: 100%;
  height: 50%;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 120px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: left;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.carousel, .carousel-inner, .carousel-item {
  height: 100%;
}

.carousel video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  z-index: 5;
}

/* =========================
   CAROUSEL CONTROLS
========================= */

.carousel-control-prev, .carousel-control-next {
  width: auto;
  height: auto;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
  width: 2rem;
  height: 2rem;
  filter: invert(28%) sepia(88%) saturate(1265%) hue-rotate(194deg) brightness(97%) contrast(10%);
}

/* =========================
   HERO SECTION
========================= */

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('Machines/FILLING/Liquid filling and capping machine/clipboard-image.png') center/cover no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
}

.hero-section .container {
  z-index: 2;
  position: relative;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  color: var(--brand-white);
  max-width: 466px;
  font-size: 48px;
  font-family: 'Roboto Condensed';
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* =========================
   CTA BUTTON
========================= */

.btn-cta {
  background: linear-gradient(135deg, #F17720 0%, #E56B0A 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 48px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  letter-spacing: 0.5px;
  display: inline-block;
  white-space: nowrap;
  width: 100%;
  max-width: 550px;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(241, 119, 32, 0.45);
  background: linear-gradient(135deg, #E56B0A 0%, #D45A00 100%);
  color: white;
}

.btn-cta i {
  transition: transform 0.3s ease;
}

.btn-cta:hover i {
  transform: translateX(4px);
}

/* =========================
   HERO FEATURES
========================= */

.hero-features {
  display: flex;
  gap: 2rem;
  flex-direction: row;
  align-content: center;
  justify-content: center;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.feature-item i {
  font-size: 1.2rem;
  color: #F17720;
}

/* =========================
   CHAT BAR
========================= */

.chat-bar-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 3rem;
}

.chat-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  padding: 10px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 450px;
  height: 48px;
  min-height: 48px;
}

.chat-icon {
  font-size: 1.3rem;
  color: #004A8D;
  flex-shrink: 0;
  line-height: 1;
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: #333;
  font-family: 'Roboto', sans-serif;
  padding: 0;
  line-height: 1.4;
  height: 100%;
}

.chat-input::placeholder {
  color: #666;
  font-weight: 400;
}

/* =========================
   ABOUT CARDS (matches provided image)
   - 3-column responsive card grid
   - image cover, uppercase condensed titles
   - thin colored bar above title and subtle shadow + hover lift
   All styles added here (no new files) as requested.
========================= */

.d-flex.justify-content-center.flex-wrap.gap-5 {
  gap: 1.75rem !important;
}

/* Card layout */

.about-card {
  width: calc(33.333% - 1.17rem);
  min-width: 250px;
  max-width: 360px;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Image on top */

.about-card .card-img-top {
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Body spacing */

.about-card .card-body {
  padding: 18px;
  position: relative;
  background: #fff;
}

/* thin colored bar across the top of the body to match the visual */

.about-card .card-body::before {
  content: "";
  display: block;
  height: 6px;
  /*background: linear-gradient(90deg, rgba(0,74,141,1) 0%, rgba(241,119,32,1) 100%);*/
  margin: -18px -18px 12px;
}

/* Title styling */

.about-card .card-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

/* Paragraph styling */

.about-card .card-text {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Hover lift */

.card.shadow-sm.about-card:hover, .about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

/* Responsive breakpoints */

@media (max-width: 1200px) {
  .about-card {
    width: calc(50% - 1rem);
  }
}

@media (max-width: 576px) {
  .about-card {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 576px) {
  .about-card .card-img-top {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .about-card .card-body::before {
    margin-left: -18px;
    margin-right: -18px;
  }
}

/* Contact Us Section - Fixed background for all viewports */

#contact-us-1 {
  background-image: url('../../assets/img//hero-images/Gear-Pattern.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-color: rgba(4, 33, 58, 0.7);
  min-height: 600px;
  padding-bottom: 64px;
}

.btn-send {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #004A8D;
  font-size: 1.5rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
  width: 24px;
  height: 24px;
}

.btn-send:hover {
  transform: translateX(2px);
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   RESPONSIVE - 1024px
========================= */

/* =========================
   RESPONSIVE - 991px
========================= */

/* =========================
   RESPONSIVE - 768px
========================= */

/* =========================
   RESPONSIVE - 576px
========================= */

/* =========================
   RESPONSIVE - 480px
========================= */

/* =========================
   RESPONSIVE - 360px
========================= */

.btn-brand-blue {
  background: #004a8d;
  color: white;
  border-radius: 0px;
  padding: 14px 42px;
  font-weight: 500;
  border: none;
  transition: 0.3s ease;
  font-size: 16px;
}

.btn-brand-blue:hover {
  background: #0058a9;
  transform: translateY(-2px);
}

.btn-brand-orange {
  background: #f17720;
  color: white;
  border-radius: 0px;
  padding: 14px 42px;
  font-weight: 500;
  border: none;
  transition: 0.3s ease;
  font-size: 16px;
}

.btn-brand-orange:hover {
  background: #f99751;
  color: white;
  transform: translateY(-2px);
}

.custom-link {
  text-decoration: none !important;
}

.H1 {
  font-family: 'Roboto Condensed';
  font-weight: 600;
  font-size: 36px;
  color: #475569;
}

h2 {
  font-family: 'Roboto Condensed';
  font-weight: 600;
  line-height: 115%;
  font-size: 36px;
  color: #475569;
}

.industry-anchor {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 2px;
  padding: 6px 36px;
  background: rgba(0, 0, 0, 0);
  border-radius: 0px;
  border-color: var(--brand-white);
  cursor: pointer;
  transition: all 0.3s ease;
}

.industry-anchor:hover {
  background: #ff7a00;
  border-color: #ff7a00;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.25);
}

@media (max-width: 767.98px) {
  .industry-anchor {
    width: 100%;
    display: block;
    text-align: center;
    margin-bottom: 12px;
  }
}

@media (max-width: 991.98px) {
  .col-lg-8.col-xl-11 {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }
}

.hero-category-name {
  margin-bottom: 0px;
  color: var(--brand-accent);
  font-size: 16px;
  font-family: Roboto, sans-serif;
  letter-spacing: 4px;
}

.industry-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* FAQ Section */

.faq-section {
  background-color: #f5f6f8;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.faq-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: -0.5px;
  margin-bottom: 3rem;
}

/* FAQ Accordion Styling */

.accordion-faq {
  gap: 1rem;
  display: flex;
  flex-direction: column;
}

.faq-card {
  background: white;
  border: none;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.faq-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.faq-button {
  background-color: white;
  color: #2c3e50;
  border: none;
  font-family: 'Roboto';
  font-weight: 600;
  font-size: 1rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
  text-align: left;
  box-shadow: none;
}

.faq-button:not(.collapsed) {
  background-color: #f5f6f8;
  color: #2c3e50;
}

.faq-button:hover:not(.collapsed) {
  background-color: #eef0f4;
}

.faq-button::after {
  content: '';
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml, %3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  margin-left: auto;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

/* =========================
   BACK TO TOP & CHAT FLOATING BUTTON
   - Chat button placed above Back to Top
   - Chat window opens when chat button is clicked
========================= */

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Floating chat button (appears above the back-to-top button) */

.floating-chat, #chatButton {
  position: fixed;
  right: 10px;
  bottom: 88px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  border: none;
  cursor: pointer;
  z-index: 1050;
  transition: transform .12s ease, box-shadow .12s ease, opacity .2s ease;
}

.floating-chat img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.floating-chat:active, .floating-chat:focus {
  transform: translateY(1px) scale(.99);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  outline: none;
}

/* Chat window (hidden by default) */

.chat-window {
  position: fixed;
  right: 20px;
  bottom: 150px;
  width: 340px;
  max-width: calc(100% - 40px);
  height: 420px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(10, 20, 35, 0.25);
  overflow: hidden;
  transform: translateY(10px) scale(.98);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.18s ease, opacity 0.18s ease, visibility 0.18s;
  z-index: 1060;
  display: flex;
  flex-direction: column;
}

/* When open */

.chat-window.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

/* Header */

.chat-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(0,74,141,1) 0%, rgba(241,119,32,1) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.chat-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* Body */

.chat-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg {
  max-width: 80%;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.3;
}

/* user / bot */

.chat-msg.user {
  align-self: flex-end;
  background: var(--brand-blue);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.chat-msg.bot {
  align-self: flex-start;
  background: #f1f3f5;
  color: #222;
  border-bottom-left-radius: 6px;
}

/* Input row */

.chat-input-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

.chat-input-row #chatInput {
  flex: 1 1 auto;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #e6e6e9;
}

.chat-input-row #chatSend {
  flex: 0 0 auto;
  height: 40px;
  padding: 6px 12px;
  border-radius: 6px;
}

/* Small screens tweaks */

/* Default small-screen chat window when closed or minimized */

@media (max-width: 520px) {
  .chat-window {
    right: 12px;
    bottom: 110px;
    width: 92%;
    height: 60vh;
  }
}

/* Make the mobile header sticky so it remains at the top on small viewports.
     This targets the header row used for mobile (.header-wrapper). We also add a
     small top padding to <main> on mobile so the page content does not sit under
     the sticky header when it becomes fixed. Adjust --mobile-header-height if you
     change mobile header sizing. */

@media (max-width: 520px) {
  .header-wrapper {
    top: 0;
    z-index: 1070;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
}

/* Reserve space so content won't be hidden behind the sticky header on mobile.
     If your mobile header height differs, update this value. */

@media (max-width: 520px) {
  main {
    padding-top: 64px;
  }
}

/* When the chat is opened on mobile, occupy the full viewport using dynamic --vh */

@media (max-width: 520px) {
  .chat-window.open {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    border-radius: 0;
    max-width: 100%;
    transform: translateY(0) scale(1);
    z-index: 1100;
  }
}

/* Ensure the chat body fills the available height while header remains sticky */

@media (max-width: 520px) {
  .chat-window.open .chat-body {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
}

/* Messages area should scroll beneath the sticky header */

@media (max-width: 520px) {
  .chat-window.open .chat-messages {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* On mobile, keep the floating chat button visible but position it appropriately
   so it doesn't conflict with the back-to-top button. It will appear after scroll trigger.
   The mobile menu chat option remains available in the menu. */

@media (max-width: 520px) {
  .floating-chat, #chatButton {
    right: 12px;
    bottom: 88px;
    display: inline-flex !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
}

/* When the show class is applied (via scroll trigger), make it visible */

@media (max-width: 520px) {
  .floating-chat.show, #chatButton.show {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 520px) {
  #backToTop {
    right: 8px;
    bottom: 20px;
  }
}

.accordion-body {
  padding: 1.5rem 1.25rem;
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid #f0f0f0;
}

/* Image Styling */

.faq-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  height: auto;
  transition: all 0.3s ease;
}

.faq-image:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */

.breadcrumb-item > a {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
  color: #5D5C5B;
}

.breadcrumb-item img {
  filter: invert(36%) sepia(5%) saturate(136%) hue-rotate(349deg) brightness(94%) contrast(87%);
}

.breadcrumb-item.active > a {
  text-decoration: none;
  color: #817F7E;
}

.bs-icon {
  --bs-icon-size: .75rem;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: var(--bs-icon-size);
  width: calc(var(--bs-icon-size) * 2);
  height: calc(var(--bs-icon-size) * 2);
  color: var(--bs-primary);
}

.bs-icon-xs {
  --bs-icon-size: 1rem;
  width: calc(var(--bs-icon-size) * 1.5);
  height: calc(var(--bs-icon-size) * 1.5);
}

.bs-icon-sm {
  --bs-icon-size: 1rem;
}

.bs-icon-md {
  --bs-icon-size: 1.5rem;
}

.bs-icon-lg {
  --bs-icon-size: 2rem;
}

.bs-icon-xl {
  --bs-icon-size: 2.5rem;
}

.bs-icon.bs-icon-primary {
  color: var(--bs-white);
  background: var(--bs-primary);
}

.bs-icon.bs-icon-primary-light {
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), .2);
}

.bs-icon.bs-icon-semi-white {
  color: var(--bs-primary);
  background: rgba(255, 255, 255, .5);
}

.bs-icon.bs-icon-rounded {
  border-radius: .5rem;
}

.bs-icon.bs-icon-circle {
  border-radius: 50%;
}

.carousel-track.hero {
  position: relative;
}

.hero-text {
  position: absolute;
  top: 25%;
  left: 8%;
  transform: translateY(-50%);
  z-index: 2;
}

/* Industries Section Styles */

.industries-section {
  padding: 60px 0;
  background: white;
}

.industry-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--brand-accent, #ff7a00);
  border-radius: 4px;
  margin-bottom: 20px;
}

.industry-icon-box i {
  font-size: 32px;
  color: white;
}

.industry-title {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
  margin-top: 10px;
  letter-spacing: -0.5px;
}

.industry-description {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 30px;
}

.industry-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-item {
  padding: 0;
}

.highlight-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-accent, #ff7a00);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.highlight-text {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.feature-box {
  padding: 20px;
  border-radius: 0px;
  text-align: left;
  border: 1px solid var(--brand-border);
}

.feature-box h6 {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-blue, #004a8d);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.industry-image {
  width: 100%;
  height: 25vh;
  border-radius: 4px;
  object-fit: cover;
}

/* Responsive adjustments */

/* =========================
   GROUPED MEDIA QUERIES
========================= */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 48px;
    font-family: 'Roboto Condensed';
  }
}

@media (max-width: 1024px) {
  .hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  }
}

@media (max-width: 1024px) {
  .btn-cta {
    padding: 12px 32px;
    font-size: 1rem;
    display: inline-block;
    max-width: 550px;
  }
}

@media (max-width: 1024px) {
  .feature-item {
    font-size: 0.9rem;
  }
}

@media (max-width: 1024px) {
  .chat-bar {
    max-width: 95%;
    padding: 9px 16px;
    height: 46px;
    gap: 10px;
  }
}

@media (max-width: 1024px) {
  .chat-icon {
    font-size: 1.2rem;
  }
}

@media (max-width: 1024px) {
  .chat-input {
    font-size: 0.9rem;
  }
}

@media (max-width: 1024px) {
  .btn-send {
    font-size: 1.4rem;
  }
}

@media (max-width: 991px) {
  .top-bar .btn {
    white-space: nowrap;
  }
}

@media (max-width: 991px) {
  .top-bar {
    gap: 18px !important;
  }
}

@media (max-width: 991px) {
  .top-bar .nav-link {
    font-size: 12px;
  }
}

@media (max-width: 991px) {
  .top-bar .btn {
    padding: 10px 10px;
    font-size: 12px;
  }
}

@media (max-width: 991px) {
  .search-box {
    width: 40px !important;
    flex: 0 0 40px;
  }
}

@media (max-width: 991px) {
  .search-box input {
    display: none;
  }
}

@media (max-width: 991px) {
  .search-box .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 991px) {
  .nav-compact .nav-link {
    font-size: 14px;
    padding-left: 6px;
    padding-right: 6px;
  }
}

@media (max-width: 991px) {
  .nav-compact {
    gap: 6px !important;
  }
}

@media (max-width: 991px) {
  .faq-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 991px) {
  .faq-section {
    min-height: auto;
  }
}

@media (max-width: 991px) {
  .faq-button {
    padding: 1rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 991px) {
  .accordion-body {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 768px) {
  header nav {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .navbar-brand img {
    width: 140px !important;
    height: auto;
  }
}

@media (max-width: 576px) {
  .navbar-brand > div:nth-child(2), .navbar-brand p, .btn.btn-primary[type="button"] {
    display: none;
  }
}

@media (max-width: 768px) {
  .collapse.navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
    gap: 0.5rem !important;
  }
}

@media (max-width: 768px) {
  .navbar-nav .nav-link {
    font-size: 11px !important;
    padding: 0.25rem 0 !important;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: calc(100vh - 120px);
    padding: 40px 20px;
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  .hero-content {
    max-width: 100%;
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    max-width: 90% !important;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .feature-item {
    font-size: 0.8rem;
    flex-basis: calc(50% - 0.75rem);
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .btn-cta {
    padding: 11px 24px;
    font-size: 0.95rem;
    max-width: 600px;
    width: auto;
    display: inline-block;
    white-space: nowrap;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .btn-cta span {
    display: inline;
  }
}

@media (max-width: 768px) {
  .chat-bar {
    max-width: calc(100vw - 40px);
    padding: 8px 14px;
    height: 44px;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .chat-icon {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .chat-input {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .btn-send {
    font-size: 1.3rem;
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 768px) {
  .chat-bar-wrapper {
    margin-top: 1.5rem;
    padding: 0 10px;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .hero-features {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  header nav:nth-of-type(1) {
    padding: 0.5rem;
  }
}

@media (max-width: 576px) {
  header nav:nth-of-type(2), .navbar:nth-of-type(2) {
    display: none;
  }
}

@media (max-width: 576px) {
  .navbar-brand img {
    width: 80px !important;
  }
}

@media (max-width: 576px) {
  .navbar-expand-md {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .faq-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .faq-button {
    padding: 0.875rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .accordion-body {
    padding: 1rem 0.875rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .industries-section {
    padding: 40px 0;
  }
}

@media (max-width: 576px) {
  .industry-card {
    padding: 30px 0;
  }
}

@media (max-width: 576px) {
  .industry-title {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .industry-description {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .feature-box {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  header {
    position: relative;
    z-index: 50;
  }
}

@media (max-width: 480px) {
  header nav {
    padding: 0.5rem 0;
    margin: 0 !important;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.25rem 0.5rem !important;
  }
}

@media (max-width: 480px) {
  .navbar-brand {
    gap: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  .navbar-brand img {
    width: 75px !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .navbar-toggler {
    padding: 0.15rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .navbar-nav {
    gap: 0 !important;
  }
}

@media (max-width: 480px) {
  .nav-link {
    padding: 0.25rem 0 !important;
    font-size: 10px !important;
  }
}

@media (max-width: 480px) {
  .search-bar, .ms-auto {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: auto;
    min-height: calc(100vh - 80px);
    padding: 30px 12px;
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 0;
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 0.8rem;
    max-width: 100% !important;
    margin-bottom: 1.2rem;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.5;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-features {
    gap: 0.8rem;
    align-content: center;
    margin-bottom: 1.2rem;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .feature-item {
    font-size: 0.7rem;
    flex-basis: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .feature-item i {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .btn-cta {
    padding: 9px 18px;
    font-size: 0.85rem;
    display: block;
    margin: 0 auto 1rem auto;
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 480px) {
  .btn-cta i {
    margin-left: 0 !important;
  }
}

@media (max-width: 480px) {
  .chat-bar {
    max-width: calc(100vw - 24px);
    padding: 7px 12px;
    height: 40px;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .chat-icon {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .chat-input, .chat-input::placeholder {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .btn-send {
    font-size: 1.2rem;
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .chat-bar-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding: 0 6px;
    width: 100%;
  }
}

@media (max-width: 360px) {
  .navbar-brand {
    gap: 0.25rem !important;
  }
}

@media (max-width: 360px) {
  .navbar-brand img {
    width: 70px !important;
  }
}

@media (max-width: 360px) {
  .nav-link {
    font-size: 9px !important;
  }
}

@media (max-width: 360px) {
  .hero-section {
    min-height: calc(100vh - 70px);
    padding: 20px 8px;
  }
}

@media (max-width: 360px) {
  .hero-content {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.6rem;
  }
}

@media (max-width: 360px) {
  .hero-subtitle {
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 360px) {
  .btn-cta {
    padding: 7px 14px;
    font-size: 0.8rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 360px) {
  .hero-features {
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 360px) {
  .feature-item {
    font-size: 0.85rem;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .chat-bar {
    max-width: calc(100vw - 16px);
    padding: 6px 10px;
    height: 38px;
    gap: 5px;
  }
}

@media (max-width: 360px) {
  .chat-icon {
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .chat-input, .chat-input::placeholder {
    font-size: 0.75rem;
  }
}

@media (max-width: 360px) {
  .btn-send {
    font-size: 1.1rem;
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 360px) {
  .chat-bar-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 992px) {
  .industry-title {
    font-size: 24px;
  }
}

@media (max-width: 992px) {
  .industry-card {
    padding: 40px 0;
  }
}

@media (max-width: 992px) {
  .order-lg-1 {
    order: 0;
  }
}

@media (max-width: 992px) {
  .order-lg-2 {
    order: 0;
  }
}

html {
  scroll-behavior: smooth;
}

#backToTop {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 55px;
  height: 55px;
  background: #ff7a00;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 22px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

.breadcrumb, .breadcrumb a, .breadcrumb-item, .breadcrumb .align-items-center {
  font-family: 'Roboto', 'Roboto Condensed', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
}

/* keep the simple selector for compatibility */

.breadcrumb a {
  text-decoration: none;
}

h1 {
  font-family: 'Roboto Condensed';
  font-size: 48px;
  font-weight: 700;
  line-height: 115%;
  color: #475569;
}

h3 {
  font-family: 'Roboto Condensed';
  font-size: 28px;
  font-weight: 700;
  line-height: 115%;
  color: #475569;
}

h4 {
  font-size: 22px;
  font-family: 'Roboto Condensed';
  font-weight: 600;
  line-height: 130%;
  color: #475569;
}

.about-card {
  /*max-width: 300px;*/
  width: 30%;
  height: 460px;
}

.divider {
  height: 1px;
  background: var(--bs-gray-300);
  flex-grow: 1;
}

a:hover {
  color: var(--brand-accent);
}

.logo-man-long {
  display: none;
}

@media (min-width: 1200px) {
  .logo-man-long {
    display: block;
  }
}

.logo-man-short {
  display: block;
}

@media (min-width: 1200px) {
  .logo-man-short {
    display: none;
  }
}

.img-row {
  gap: 36px;
}

/* =========================
   MERGED CSS — appended from header-fix.css, menu.css, about-panels.css, equipment-catalog.css, my-card.css
   Note: bs-icon definitions from my-card.css were omitted because they already exist earlier in styles.css
========================= */

/* header-fix.css */

/* Ensure consistent header/nav fonts across all pages */

header, header .navbar, .navbar-brand, .navbar-brand p, .nav-link, .nav-item, .nav-compact .nav-link {
  font-family: 'Roboto', 'Roboto Condensed', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 500;
}

/* menu.css */

/* Nested Dropdown Styles */

.products-dropdown {
  width: auto;
  padding: 0;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 0;
}

.products-container {
  display: flex;
  width: 100%;
  background: white;
}

.categories-column {
  display: flex;
  flex-direction: column;
  width: 200px;
  background-color: #f8f9fa;
  border-right: 1px solid #dee2e6;
  padding: 0;
}

.category-btn {
  padding: 14px 16px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-btn i {
  font-size: 16px;
}

.category-btn:hover {
  background-color: #efefef;
  color: #0d6efd;
}

.category-btn.active {
  background-color: white;
  color: #0d6efd;
  font-weight: 600;
  border-left-color: #0d6efd;
}

.products-column {
  padding: 20px;
  min-width: 350px;
  background-color: white;
  border-right: 1px solid #dee2e6;
  display: flex;
  flex-direction: column;
}

.products-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.products-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.view-all-link {
  font-size: 12px;
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.view-all-link:hover {
  color: #0b5ed7;
}

.products-list {
  display: block !important;
}

.products-list.show {
  display: block !important;
}

.product-item {
  padding: 10px 0;
  color: #555;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-item i {
  color: #999;
  font-size: 14px;
  min-width: 16px;
}

.product-item:hover {
  color: #0d6efd;
}

.product-item:hover i {
  color: #0d6efd;
}

.products-grid {
  padding: 20px;
  min-width: 450px;
  background-color: white;
  display: flex;
  flex-direction: column;
}

.products-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.products-grid-content {
  display: none !important;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.products-grid-content.show {
  display: grid !important;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.grid-item i {
  font-size: 24px;
  color: #999;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.grid-item span {
  font-size: 12px;
  color: #555;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.grid-item:hover i {
  color: #0d6efd;
}

.grid-item:hover span {
  color: #0d6efd;
  font-weight: 500;
}

.dropdown-menu li {
  position: relative;
}

.dropdown-menu .dropdown-submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: -7px;
}

.dropdown-menu .dropdown-submenu-left {
  right: 100%;
  left: auto;
}

.dropdown-menu > li:hover > .dropdown-submenu {
  display: block;
}

.hero-text {
  left: 36%;
  top: 50%;
}

.font-weight-bold {
  font-weight: bold;
}

.list-item {
  padding-bottom: 12px;
}

/* about-panels.css */

/* =========================
   INFORMATION PANELS SECTION
========================= */

.about-panels-section {
  padding: 48px 0;
  background: transparent;
}

.about-panels-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Base panel styling */

.info-panel {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Orange accent bar at top */

.info-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-accent);
}

/* Hover state - subtle elevation and border shift */

/* Panel icon styling */

.info-panel-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.info-panel-icon i {
  font-size: 28px;
  color: var(--brand-blue);
}

/* Panel image styling */

.info-panel-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
  display: block;
}

/* Panel title styling */

.info-panel-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--brand-primary);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  line-height: 1.3;
}

/* Panel description styling */

.info-panel-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--brand-secondary);
  margin: 0;
  flex-grow: 1;
}

/* Responsive layout */

@media (max-width: 1199px) {
  .about-panels-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .about-panels-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .about-panels-section {
    padding: 32px 0;
  }
}

@media (max-width: 767px) {
  .info-panel {
    padding: 24px;
  }
}

/* Ensure equal height panels */

.info-panel {
  min-height: auto;
}

.card-body a {
  margin-top: auto;
}

/* equipment-catalog.css */

/* =========================
   FLOATING SCROLL SPY - LIGHT VERSION (GLASS)
   - Light glassmorphism: pale background, dark text
   - Same structure & behaviors as the dark variant
========================= */

/* Base panel - hidden by default, will animate in/out */

/* Positioned closer to the centered container using a responsive calc.
   On wide viewports the panel moves closer to the container edge.
   On smaller viewports it falls back to a small right offset.
   The clamp keeps the value within sensible bounds. */

.floating-scroll-spy {
  position: fixed;
  right: clamp(12px, calc((100vw - 1265px) / 2 - 16px), 88px);
  /*left: clamp(12px, calc((100vw - 1265px) / 2 - 16px), 68px);*/
  top: 50%;
  transform: translateY(-50%) translateX(12px);
  z-index: 1100;
  background: rgba(255, 255, 255, 0.40);
  color: #0b1220;
  border-radius: 18px;
  padding: 10px 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(11,18,32,0.08);
  box-shadow: 0 6px 30px rgba(15, 23, 42, 0.08);
  max-height: 100vh;
  overflow: hidden;
  width: 200px;
  transition: transform 320ms cubic-bezier(.2,.9,.25,1), opacity 320ms ease, visibility 320ms;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
}

/* When visible */

.floating-scroll-spy.visible {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Compact hidden state used for initial hiding while at top */

.floating-scroll-hidden {
  opacity: 0;
  transform: translateY(-50%) translateX(-18px);
  visibility: hidden;
}

/* ===== EDIT THESE CLASSES IN BOOTSTRAP STUDIO ===== */

/* Force scrollspy to always show (add this class to toggle visibility on) */

.scrollspy-show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(-50%) translateX(0) !important;
  pointer-events: auto !important;
}

/* Force scrollspy to always hide (default state - remove class to show) */

.scrollspy-hide {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-50%) translateX(-18px) !important;
  pointer-events: none !important;
}

/* Timeline list */

.floating-timeline {
  list-style: none;
  margin: 0;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: stretch;
  position: relative;
}

/* Vertical connector (full panel) - removed for clean dot-only timeline */

.floating-timeline::before {
  display: none;
}

/* Group block */

.spy-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 4px;
}

/* Group title */

.spy-group-title {
  font-size: 12px;
  color: rgba(11,18,32,0.85);
  padding-left: 8px;
  margin-bottom: 2px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: display 200ms ease;
}

@media (max-width: 1849px) {
  .spy-group-title {
    display: none;
  }
}

@media (min-width: 1850px) {
  .spy-group-title {
    display: block;
  }
}

/* Sublist (subcategories) */

.spy-sublist {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Item layout */

.spy-sublist li {
  display: flex;
  align-items: center;
}

/* Icon styling */

.spy-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
  transition: transform 200ms ease;
}

/* Button styles */

.spy-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  color: #0b1220;
  width: 100%;
  text-align: left;
  padding: 8px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, transform 180ms ease, width 200ms ease;
  outline: none;
  font-size: 13px;
  font-weight: 500;
  position: relative;
}

/* RESPONSIVE: Below 1850px - Icon only with hover expansion */

@media (max-width: 1849px) {
  .floating-scroll-spy {
    width: auto;
    padding: 10px 8px;
  }
}

@media (max-width: 1849px) {
  .spy-btn {
    width: auto;
    gap: 0;
    padding: 8px;
    justify-content: center;
  }
}

@media (max-width: 1849px) {
  .spy-label {
    display: none;
  }
}

/* On hover/focus, expand to show label */

@media (max-width: 1849px) {
  .spy-btn:hover, .spy-btn:focus {
    gap: 8px;
    background: rgba(241, 119, 32, 0.08);
  }
}

@media (max-width: 1849px) {
  .spy-btn:hover .spy-label, .spy-btn:focus .spy-label {
    display: inline;
  }
}

/* RESPONSIVE: 1850px and above - Icon + Label always visible */

@media (min-width: 1850px) {
  .floating-scroll-spy {
    width: 200px;
  }
}

@media (min-width: 1850px) {
  .spy-btn {
    width: 100%;
    gap: 10px;
  }
}

@media (min-width: 1850px) {
  .spy-label {
    display: inline;
  }
}

/* Label */

.spy-label {
  color: rgba(11,18,32,0.85);
  transition: color 200ms ease, font-weight 200ms ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hover */

.spy-btn:hover {
  background: rgba(11,18,32,0.04);
  transform: translateX(-4px);
}

/* Active state */

.spy-btn.active {
  color: var(--brand-accent);
  font-weight: 700;
  background: rgba(241, 119, 32, 0.12);
}

.spy-btn.active .spy-icon {
  filter: brightness(0) saturate(100%) invert(62%) sepia(73%) saturate(1337%) hue-rotate(10deg) brightness(104%) contrast(103%);
  transform: scale(1.15);
}

/* Make label more prominent when active */

.spy-btn.active .spy-label {
  color: var(--brand-accent);
  font-weight: 700;
}

/* Highlight group when any child active */

.spy-group.group-active .spy-group-title {
  color: var(--brand-accent);
  text-shadow: 0 2px 6px rgba(241, 119, 32, 0.1);
}

/* Accessible focus state */

.spy-btn:focus-visible {
  box-shadow: 0 0 0 4px rgba(241, 119, 32, 0.15);
  border-radius: 10px;
}

/* Responsiveness */

/* Tablet: slightly smaller */

@media (max-width: 1199px) and (min-width: 768px) {
  .floating-scroll-spy {
    right: 12px;
    width: 180px;
    padding: 8px 10px;
    border-radius: 16px;
    transform: translateY(-50%) translateX(10px);
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .spy-node {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .spy-label {
    font-size: 12px;
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .floating-timeline::before {
    left: 28px;
  }
}

/* Mobile & LG behavior for floating scrollspy
   - On LG and smaller (<= 992px) keep the panel present but collapsed (icons-only).
   - This overrides any force-open class (eg. .scrollspy-show) so the UI remains compact.
   - On narrow/mobile (< 768px) fully hide the floating panel in favor of filters/tabs. */

/* At LG and below: collapse the panel into icons-only and prevent full-width expansion */

@media (max-width: 992px) {
  .floating-scroll-spy {
    display: flex !important;
    width: auto !important;
    padding: 8px 8px !important;
    right: 12px !important;
    transform: translateY(-50%) translateX(10px) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: rgba(255,255,255,0.40) !important;
    border-radius: 16px !important;
  }
}

/* Make each button icon-centered and hide labels/group titles */

@media (max-width: 992px) {
  .floating-scroll-spy .spy-btn {
    justify-content: center !important;
    gap: 0 !important;
    padding: 8px !important;
  }
}

@media (max-width: 992px) {
  .floating-scroll-spy .spy-label, .floating-scroll-spy .spy-group-title {
    display: none !important;
  }
}

/* Ensure hover / focus still reveals a subtle expansion for discoverability */

@media (max-width: 992px) {
  .floating-scroll-spy .spy-btn:hover, .floating-scroll-spy .spy-btn:focus {
    gap: 8px !important;
    background: rgba(241, 119, 32, 0.06) !important;
  }
}

/* Collapse floating scrollspy on XL/LG and show icons-only;
   fully hide on narrow/mobile (<768px).
   This keeps the panel compact for viewports <=1199px while still
   allowing hover/focus reveal on pointer devices. */

/* At XL and below: compact icons-only panel */

@media (max-width: 1199px) {
  .floating-scroll-spy, .floating-scroll-spy.scrollspy-show {
    display: flex !important;
    width: auto !important;
    padding: 8px 8px !important;
    right: 12px !important;
    transform: translateY(-50%) translateX(10px) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: rgba(255,255,255,0.40) !important;
    border-radius: 16px !important;
  }
}

/* Icon-only layout: center icons and hide labels/group titles */

@media (max-width: 1199px) {
  .floating-scroll-spy .spy-btn {
    justify-content: center !important;
    gap: 0 !important;
    padding: 8px !important;
  }
}

@media (max-width: 1199px) {
  .floating-scroll-spy .spy-label, .floating-scroll-spy .spy-group-title {
    display: none !important;
  }
}

/* Subtle reveal on hover/focus for discoverability */

@media (max-width: 1199px) {
  .floating-scroll-spy .spy-btn:hover, .floating-scroll-spy .spy-btn:focus {
    gap: 8px !important;
    background: rgba(241, 119, 32, 0.06) !important;
  }
}

/* Mobile: fully hide the floating panel (use existing category-tabs / filters) */

@media (max-width: 767px) {
  .floating-scroll-spy {
    display: none !important;
  }
}

/* =========================
   CATALOG PAGE STYLES
========================= */

/* Page Header */

.catalog-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
  padding: 60px 0;
  border-bottom: 1px solid var(--brand-border);
}

.header-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.catalog-title {
  font-size: 42px;
  font-weight: 600;
  color: var(--brand-primary);
  margin: 0;
  line-height: 1.2;
}

.catalog-subtitle {
  font-size: 16px;
  color: var(--brand-secondary);
  margin: 0;
  max-width: 600px;
  line-height: 1.6;
}

/* Category Filters */

.category-filters {
  background: white;
  padding: 30px 0;
  border-bottom: 1px solid var(--brand-border);
}

.filter-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.filter-pill {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  color: var(--brand-secondary);
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  background: #e8ecf1;
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.filter-pill.active {
  background: var(--brand-blue);
  color: white;
  border-color: var(--brand-blue);
}

/* Catalog Sections */

.catalog-section {
  padding: 50px 0;
  background: white;
}

.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--brand-primary);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.machine-count {
  font-size: 18px;
  color: var(--brand-secondary);
  font-weight: 400;
}

.section-subtitle {
  font-size: 14px;
  color: var(--brand-blue);
  margin: 0;
  font-weight: 500;
}

/* Machines Grid */

.machines-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
  width: 100%;
}

/* 2 columns for LG and up (>=992px) */

@media (min-width: 992px) {
  .machines-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-between;
  }
}

/* Full width 2 columns for XXL (>=1400px) */

@media (min-width: 1400px) {
  .machines-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .machines-grid {
    gap: 20px;
  }
}

/* Machine Card - Horizontal Layout */

.machine-card {
  background: white;
  border: 1px solid #d4d9e0;
  border-radius: 12px;
  line-height: 1;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  max-width: 620px;
  height: 100%;
}

.machine-card:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 8px 24px rgba(0, 74, 141, 0.15);
  transform: translateY(-2px);
}

.machine-card.hidden-card {
  display: flex;
  opacity: 1;
}

.machine-card.hidden-card.visible {
  display: flex;
  opacity: 1;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Machine Image */

/* Tighten card/image sizes on XXL so 3 cards fit comfortably */

@media (min-width: 1400px) {
  .machines-grid {
    justify-content: space-between;
  }
}

@media (min-width: 1400px) {
  .machine-content {
    padding: 18px;
  }
}

.machine-image {
  height: min-content;
  transition: initial;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 4px;
}

.machine-card:hover .machine-image {
  transform: scale(1.05);
}

/* Machine Content */

.machine-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
}

.machine-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--search-secondary);
  margin: 0;
  line-height: 1.3;
}

.machine-description {
  font-size: 13px;
  color: var(--brand-secondary);
  margin: 0;
  line-height: 1.5;
  flex: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Machine Specs */

.machine-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
}

.spec-item {
  display: flex;
  justify-content: flex-start;
  font-size: 12px;
  gap: 8px;
}

.spec-label {
  color: var(--brand-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.spec-value {
  color: var(--brand-secondary);
  font-weight: 500;
}

/* Details Button */

.btn-details {
  background: var(--brand-blue);
  color: white;
  border: none;
  border-radius: 24px;
  padding: 10px 28px !important;
  font-size: 13px !important;
  font-weight: 600;
  cursor: pointer !important;
  transition: all 0.3s ease;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  margin-top: 8px;
  align-self: stretch;
}

.btn-details:hover {
  background: #003560;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 74, 141, 0.25);
  color: white;
}

/* Toggle Button */

.toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.btn-toggle-more {
  background: white;
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  padding: 12px 40px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-toggle-more:hover {
  background: var(--brand-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 74, 141, 0.25);
}

.btn-toggle-more.expanded {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-toggle-more.expanded:hover {
  background: var(--brand-primary);
  color: white;
}

/* Responsive Design */

@media (max-width: 768px) {
  .catalog-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .catalog-subtitle {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .machine-content {
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .filter-wrapper {
    overflow-x: auto;
    padding-bottom: 8px;
  }
}

/* Top category cards and small tabs styling */

.top-categories {
  --card-bg: #ffffff;
  --card-active-bg: var(--brand-blue);
  --card-active-color: #fff;
  padding-top: 18px;
  padding-bottom: 8px;
}

.top-category-cards {
  gap: 18px;
}

/* Top category button layout updated to include icon + text block */

.top-category-card {
  min-width: 220px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg,#ffffff,#f7f9fb);
  border: 1px solid #e6e9ee;
  color: var(--brand-primary);
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(10, 20, 30, 0.04);
  /*transition: transform .28s ease, box-shadow .28s ease, background .28s ease, border-color .28s ease;*/
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
}

/* icon inside the top card */

.top-category-card .top-card-icon {
  width: 360px;
  height: 140px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  filter: none;
  transition: transform .28s ease, opacity .25s ease;
}

/* text block inside the top card */

.top-category-card .top-card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.top-category-card .top-card-title {
  font-size: 16px;
  line-height: 1.1;
  color: inherit;
  font-weight: 700;
}

.top-category-card .top-card-desc {
  font-size: 13px;
  color: var(--brand-secondary);
  font-weight: 400;
  margin: 0;
  opacity: 0.95;
}

/* hover / active states */

.top-category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(10, 20, 30, 0.08);
}

.top-category-card.active {
  /*background: var(--card-active-bg);*/
  color: var(--card-active-color);
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 18px 40px rgba(4, 74, 141, 0.18);
  transform: translateY(-2px);
}

/* when active, tint the icon to white for contrast if it's an inline SVG — fallback keeps original image */

.top-category-card.active .top-card-icon {
  filter: brightness(0) invert(1) saturate(0.9);
}

/* responsive: stack icon above text on small screens */

@media (max-width: 768px) {
  .top-category-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px;
    min-width: 160px;
  }
}

@media (max-width: 768px) {
  .top-category-card .top-card-content {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .top-category-card .top-card-desc {
    font-size: 12px;
  }
}

/* small persistent tabs */

.category-tabs .category-tab {
  min-width: 120px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all .22s ease;
  color: var(--brand-secondary);
  background: #fff;
}

.category-tabs .category-tab.active {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
  box-shadow: 0 8px 20px rgba(0, 74, 141, 0.12);
}

/* Smooth show/hide for sections */

.catalog-section {
  transition: opacity 320ms ease, transform 320ms ease, max-height 360ms ease;
  will-change: opacity, transform;
}

.catalog-section.hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  max-height: 0 !important;
  overflow: hidden;
}

@media (max-width: 768px) {
  .filter-pill {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* Hide/Show Animations */

.machine-card.hide-card {
  animation: slideOutDown 0.4s ease-out forwards;
}

@keyframes slideOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

@media (min-width: 1200px) {
  .machine-card {
    width: 520px;
  }
}

@media (min-width: 992px) {
  .machine-card {
    width: 450px;
  }
}

@media (min-width: 1400px) {
  .machine-card {
    width: auto;
  }
}

/* my-card.css (partial — bs-icon defs omitted because already present in styles.css) */

.my-card {
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  overflow: hidden;
  border: 1px solid #ffffff;
  transition: all 0.3s ease;
}

.my-card:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border: 1px solid #e6e6e6;
}

@media (min-width: 300px) {
  .image-wrapper {
    height: 200px;
    overflow: hidden;
  }
}

@media (min-width: 576px) {
  .image-wrapper {
    height: auto;
    overflow: visible;
  }
}

@media (min-width: 576px) {
  .image-wrapper {
    overflow: visible !important;
  }
}

@media (min-width: 576px) {
  .card-img-side {
    width: 228px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
  }
}

.my-card {
  overflow: hidden;
}

.card.d-flex.flex-column.flex-sm-row {
  align-items: stretch;
}

/* Merged industry-card rules so .my-card and .industry-card share the same behavior and animations */

.industry-card, .my-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

/* Hover: Scale up and lift effect */

.industry-card:hover, .my-card:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Active/Pressed: Scale down effect */

.industry-card.pressed, .my-card.pressed {
  transform: scale(0.98) translateY(2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Smooth transition back to normal state after click */

.industry-card.pressed:hover, .my-card.pressed:hover {
  transform: scale(0.98) translateY(2px);
}

.expertise-list {
  columns: 2;
  list-style-type: square;
  line-height: 32px;
}

.expertise-list li::marker {
  color: #ff7a00;
}

@media (min-width: 576px) {
  .machine-card {
    flex-direction: row;
  }
}

@media (min-width: 1200px) {
  .machine-card {
    width: 545px;
  }
}

@media (min-width: 1400px) {
  .machine-card {
    width: auto;
  }
}

.machines-grid {
  justify-content: center;
}

@media (min-width: 992px) {
  .machines-grid {
    justify-content: space-between;
  }
}

.machine-image-wrapper {
  width: auto;
  aspect-ratio: 4 / 3;
}

/* Hero-style CTA used on the main page — reused for machine detail CTA */

.hero-cta {
  background: linear-gradient(90deg, rgba(0,74,141,0.98) 0%, rgba(4,33,58,0.95) 100%);
  box-shadow: 0 12px 36px rgba(4, 58, 120, 0.12);
  color: white;
}

/* Ensure inner content keeps spacing consistent with the rest of the site */

.hero-cta .display-6 {
  font-family: 'Roboto Condensed', sans-serif;
  letter-spacing: -0.2px;
}

/* btn-cta already exists; ensure adequate contrast when used in this block */

.hero-cta .btn-cta {
  background: linear-gradient(135deg, #F17720 0%, #E56B0A 100%);
  color: white;
  padding: 12px 36px;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(241, 119, 32, 0.18);
}

/* Responsive tweaks: make CTA stack & center nicely on narrow viewports */

@media (max-width: 768px) {
  .hero-cta {
    padding: 2rem 1.25rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-cta .btn-cta {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* product-info-panel: same visual style as .about-card but 30px wider
   - Use alongside or instead of .about-card on product info cards.
   - Width values override the defaults to be +30px while keeping the rest of the card styling. */

.product-info-panel {
  width: calc(33.333% - 1.17rem + 30px) !important;
  min-width: 280px !important;
  max-width: 390px !important;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 460px;
}

/* Respect responsive changes — increase width by 30px on each breakpoint where about-card changes */

@media (max-width: 1200px) {
  .product-info-panel {
    width: calc(50% - 1rem + 30px) !important;
    max-width: none !important;
  }
}

@media (max-width: 576px) {
  .product-info-panel {
    width: 100% !important;
    max-width: none !important;
    min-width: auto !important;
    height: auto !important;
  }
}

/* Disable hover/interaction lift for the Main Components info blocks only.
   These are intended to be static informational cards — keep hover elsewhere. */

.components-static .about-card:hover, .components-static .card.about-card:hover, .components-static .about-card.card:hover {
  transform: none !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
  cursor: default !important;
}

.spec-img-row {
  gap: 60px;
}

.spec-img {
  font-weight: 700;
  font-size: larger;
}

@media (min-width: 576px) {
  .prod-spec-list {
  }
}

.accent-link:hover {
  transform: translateX(4px);
  transition: transform 0.3s ease;
}

.info-block-row {
  flex-flow: column;
}

@media (min-width: 1200px) {
  .info-block-row {
  }
}

@media (min-width: 576px) {
  .info-panel img {
    height: 260px;
    width: 300px;
  }
}

.spec-list {
  list-style-type: square;
}

.spec-list li::marker {
  color: var(--bs-orange);
}

@media (min-width: 992px) {
  .prod-spec-text {
    width: 70%;
  }
}

@media (min-width: 1200px) {
  .prod-spec-text {
    width: 800px;
  }
}

/* =========================
   TOP CATEGORY CARDS
   - Responsive active state styling
   - Clear visual feedback on all viewports
========================= */

.top-category-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
}

.top-category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  min-width: 200px;
  max-width: 360px;
  background: transparent;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

/* Icon styling */

.top-category-card .top-card-icon {
  width: 48px;
  height: 48px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 4px;
}

/* Content wrapper */

.top-card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.top-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  line-height: 1.3;
  transition: color 0.28s ease;
}

.top-card-desc {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
  transition: color 0.28s ease;
}

/* ===== ACTIVE / SELECTED STATE ===== */

.top-category-card.active {
  background: linear-gradient(135deg, var(--brand-accent) 0%, #E56B0A 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(241, 119, 32, 0.25);
  transform: translateY(-4px);
}

.top-category-card.active .top-card-title, .top-category-card.active .top-card-desc {
  color: #ffffff;
}

/* Hover state (non-active) */

.top-category-card:hover:not(.active) {
  border-color: var(--brand-accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Focus state for keyboard navigation */

.top-category-card:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* ===== RESPONSIVE BEHAVIOR ===== */

/* Tablet: Maintain good spacing */

@media (max-width: 1024px) {
  .top-category-cards {
    gap: 1.25rem;
    padding: 0 1rem;
  }
}

@media (max-width: 1024px) {
  .top-category-card {
    min-width: 180px;
    max-width: 320px;
    padding: 14px 16px;
  }
}

@media (max-width: 1024px) {
  .top-card-desc {
    font-size: 12px;
  }
}

/* Mobile: Stack vertically and fill width */

@media (max-width: 768px) {
  .top-category-cards {
    flex-direction: column;
    gap: 12px;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .top-category-card {
    width: 100%;
    min-width: auto;
    max-width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 12px 14px;
  }
}

@media (max-width: 768px) {
  .top-card-content {
    margin-left: 12px;
    gap: 4px;
  }
}

@media (max-width: 768px) {
  .top-card-title {
    font-size: 15px;
    font-weight: 600;
  }
}

@media (max-width: 768px) {
  .top-card-desc {
    display: block;
    font-size: 12px;
    color: #6b7280;
  }
}

/* Active state still clearly visible on mobile */

@media (max-width: 768px) {
  .top-category-card.active {
    background: linear-gradient(135deg, var(--brand-accent) 0%, #E56B0A 100%);
    box-shadow: 0 6px 16px rgba(241, 119, 32, 0.2);
  }
}

@media (max-width: 768px) {
  .top-category-card.active .top-card-title, .top-category-card.active .top-card-desc {
    color: #ffffff;
  }
}

/* Small phones: Keep it compact */

@media (max-width: 480px) {
  .top-category-card {
    padding: 10px 12px;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .top-card-title {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .top-card-desc {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .top-category-card .top-card-icon {
    width: 40px;
    height: 40px;
  }
}

/* Very small phones: Hide description for space */

@media (max-width: 360px) {
  .top-category-card {
    padding: 10px;
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .top-card-desc {
    display: none;
  }
}

@media (max-width: 360px) {
  .top-card-title {
    font-size: 13px;
  }
}

/* =========================
   CONSOLIDATED CSS SECTIONS
   The following sections were merged from separate files
   for optimization and reduced HTTP requests.
========================= */

/* =========================
   STICKY CATEGORY HEADER (from category-sticky-header.css)
========================= */

/* Sticky Category Header with Chips
   Updated: vertical center alignment + improved XS behaviour */

.sticky-category-header {
  position: sticky;
  top: 30px;
  z-index: 100;
  background: #f8f9fa;
  border-bottom: 1px solid var(--brand-border);
  padding: 12px 0;
  transition: all 0.24s ease;
  /*box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1);*/
  box-shadow: 0 4px 4px rgba(0,0,0,0.05);
}

/* subtle shadow when the user scrolls down */

.sticky-category-header.scrolling {
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* layout container for title + chips */

.category-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

/* Title styling */

.category-title-sticky {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-primary);
  font-family: 'Roboto Condensed', sans-serif;
  white-space: nowrap;
  margin: 0;
}

/* Chips wrapper grows to take available space on large screens */

.category-chips-wrapper {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  justify-content: flex-end;
  align-items: center;
}

/* Individual chip */

.category-filter-chip {
  display: inline-block;
  padding: 6px 14px;
  background: #e9ecef;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  color: var(--search-secondary);
  white-space: nowrap;
}

/* hover / active states */

.category-filter-chip:hover {
  background: #dee2e6;
  border-color: #adb5bd;
}

.category-filter-chip.active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

/* Hide the old global filter section (we now use per-category chips) */

.category-filters {
  display: none !important;
}

/* Keep section headers out of visual flow (we use sticky header) */

.catalog-section {
  position: relative;
}

/* Show subcategory header inside each catalog section (was hidden previously) */

.section-header {
  display: block;
  margin: 12px 0 18px;
}

/* Subcategory title and subtitle styles */

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #6f7884;
  margin: 0 0 6px;
  font-family: 'Roboto Condensed', sans-serif;
  line-height: 1.1;
}

.section-subtitle {
  margin: 0;
  color: #8f99a6;
  font-size: 14px;
  line-height: 1.3;
}

/* Ensure the main category sections support sticky child elements */

#processing-section, #packaging-section, #palletizing-section {
  position: relative;
}

/* --- Responsive behaviour --- */

/* Tablet and below: tighten spacing */

@media (max-width: 767px) {
  .category-header-content {
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .category-title-sticky {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .category-filter-chip {
    font-size: 11px;
    padding: 5px 12px;
  }
}

/* XS phones: stack title above chips, chips stay on a single row and are horizontally scrollable if needed */

@media (max-width: 575.98px) {
  .sticky-category-header {
    top: 0;
    padding: 10px 0;
  }
}

@media (max-width: 575.98px) {
  .category-header-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
}

@media (max-width: 575.98px) {
  .category-title-sticky {
    font-size: 16px;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .category-chips-wrapper {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
    padding-top: 4px;
    width: 100%;
  }
}

/* visually hide scrollbar on most platforms while keeping usability */

@media (max-width: 575.98px) {
  .category-chips-wrapper::-webkit-scrollbar {
    height: 6px;
  }
}

@media (max-width: 575.98px) {
  .category-chips-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.08);
    border-radius: 6px;
  }
}

@media (max-width: 575.98px) {
  .category-chips-wrapper {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.08) transparent;
  }
}

@media (max-width: 575.98px) {
  .category-filter-chip {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* =========================
   EXPERTISE LINKS (from expertise-links.css)
========================= */

.expertise-list a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 160ms ease, text-decoration-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.expertise-list a:hover, .expertise-list a:focus {
  color: var(--brand-accent);
  text-decoration: underline;
  outline: none;
}

.expertise-list li {
  margin: 0.35rem 0;
}

/* Ensure icon images inside the expertise cards are visually aligned with the text */

.expertise-card .expertise-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-right: 10px;
  vertical-align: middle;
}

/* Small accessibility improvement for keyboard users */

.expertise-list a:focus {
  box-shadow: 0 0 0 3px rgba(0,74,141,0.12);
  border-radius: 4px;
}

/* Orange bullets for expertise lists */

.expertise-list {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 1.25rem;
}

.expertise-list li::marker {
  color: var(--brand-accent);
  font-weight: 700;
}

/* Utility classes to force the mega menu visible.
   Usage:
     - Add class "mega-visible" to the mega menu wrapper element (e.g. .mega-menu-wrapper)
       to force its inner .dropdown-menu to show.
     - Or add class "force-mega-visible" to the .dropdown-menu itself. */

.mega-visible > .dropdown-menu, .dropdown-menu.force-mega-visible {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
  z-index: 2500 !important;
}

/* Optional: keep hover behavior for desktop while still allowing class override */

@media (min-width: 992px) {
  .mega-visible:hover > .dropdown-menu, .mega-visible:focus-within > .dropdown-menu {
    display: block !important;
  }
}

/* Mega menu item hover & focus styles
   Applies subtle background, icon emphasis and link color change on hover/focus.
   Scoped to devices that support hover to avoid poor touch behavior. */

@media (hover: hover) and (pointer: fine) {
  .mega-menu-wrapper .dropdown-menu {
    padding: 0.75rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .mega-menu-wrapper .dropdown-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .mega-menu-wrapper .dropdown-menu li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    transition: background 180ms ease, transform 160ms ease;
    cursor: pointer;
  }
}

@media (hover: hover) and (pointer: fine) {
  .mega-menu-wrapper .dropdown-menu li img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.8;
    filter: grayscale(20%);
    transition: transform 160ms ease, opacity 160ms ease, filter 160ms ease;
  }
}

@media (hover: hover) and (pointer: fine) {
  .mega-menu-wrapper .dropdown-menu a {
    color: #374151;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    transition: color 160ms ease, transform 160ms ease;
    font-weight: 600;
  }
}

@media (hover: hover) and (pointer: fine) {
  .mega-menu-wrapper .dropdown-menu li:hover, .mega-menu-wrapper .dropdown-menu li:focus-within {
    background: rgba(0,0,0,0.03);
    transform: translateX(4px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .mega-menu-wrapper .dropdown-menu li:hover a, .mega-menu-wrapper .dropdown-menu li:focus-within a {
    color: var(--brand-blue);
    text-decoration: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .mega-menu-wrapper .dropdown-menu li:hover img, .mega-menu-wrapper .dropdown-menu li:focus-within img {
    transform: translateX(4px);
    opacity: 1;
    filter: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .mega-menu-wrapper .dropdown-menu a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,74,141,0.12);
    border-radius: 6px;
  }
}

/* Ensure hover styles don't interfere with mobile/touch */

@media (max-width: 991px) {
  .mega-menu-wrapper .dropdown-menu li {
    transform: none;
  }
}

@media (max-width: 991px) {
  .mega-menu-wrapper .dropdown-menu li img {
    transform: none;
  }
}

/* =========================
   MACHINE STEPS (from machine-steps.css)
========================= */

/* Styles for the process steps info panels */

#process-steps {
  color: #263645;
}

/* Panels: remove any decorative top line and ensure a clean block */

.info-panel {
  transition: box-shadow .18s ease, transform .18s ease;
  box-shadow: 0 1px 4px rgba(20,25,30,0.04);
  overflow: hidden;
  background: #ffffff;
  border-top: 0 !important;
  position: relative;
}

/* Hide any pseudo-element that might draw a top accent line from global rules */

.info-panel::before {
  display: none !important;
  content: none !important;
}

.info-panel img {
  width: 100%;
  height: auto;
  /*aspect-ratio: 4 / 3;*/
  object-fit: contain;
  display: block;
}

/* Numbers now sit inline with the title */

/* Slightly smaller image and number sizes on larger screens */

@media (min-width: 992px) {
  .info-panel img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 992px) {
  .step-num {
    font-size: 1.25rem;
  }
}

@media (min-width: 992px) {
  .info-panel .ps-lg-3 {
    padding-left: 1rem !important;
  }
}

@media (min-width: 768px) {
  .industry-image {
    height: 40vh;
  }
}

@media (min-width: 992px) {
  .industry-image {
    height: auto;
  }
}

@media (min-width: 1200px) {
  .industry-image {
    height: 660px;
  }
}

@media (min-width: 576px) {
  .industry-image {
  }
}

@media (min-width: 992px) {
  .feature-box {
  }
}

@media (min-width: 768px) {
  .feature-box {
    height: 110px;
  }
}

@media (min-width: 1400px) {
  .industry-image {
    height: 100%;
  }
}

/* =========================
   MAIN COMPONENTS (from main-components.css)
========================= */

.fixed-card {
  width: 260px;
  height: 340px;
}

@media (min-width: 992px) {
  .card-wrapper {
    max-width: 550px;
  }
}

@media (min-width: 1200px) {
  .card-wrapper {
    max-width: 100%;
  }
}

/* Logo Hover Effect */

.logo-hover-effect {
  transition: transform 0.3s ease-out;
  position: relative;
  overflow: visible;
}

.logo-hover-effect:hover {
  animation: logoGrow 0.6s ease-out forwards, lightSweep 0.8s ease-out forwards;
}

@keyframes logoGrow {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

@keyframes lightSweep {
  0% {
    filter: drop-shadow(-30px -30px 0px rgba(241, 119, 32, 0));
  }
  50% {
    filter: drop-shadow(0px 0px 8px rgba(241, 119, 32, 0.6));
  }
  100% {
    filter: drop-shadow(15px 15px 0px rgba(241, 119, 32, 0));
  }
}

/* Equipment Catalog Hero Section - New Design */

.hero-catalog-new {
  position: relative;
  height: 450px;
  background: var(--brand-primary);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.hero-catalog-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), url('/Hero-Imageshero-industrial.jpg') center/cover no-repeat;
  opacity: 0.4;
  z-index: 1;
}

.hero-catalog-new .container {
  position: relative;
  z-index: 2;
  height: 100%;
}

.hero-catalog-new .row {
  height: 100%;
}

.hero-catalog-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 40px;
}

.hero-catalog-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--brand-primary) 0%, transparent 40%);
  z-index: 3;
}

.hero-catalog-content {
  position: relative;
  z-index: 2;
}

.hero-catalog-subtitle {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero-catalog-title {
  font-family: 'Roboto', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--brand-white);
  margin: 0 0 16px 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-catalog-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 450px;
  line-height: 1.6;
}

.hero-search-section {
  margin-bottom: 28px;
}

.hero-search-group {
  gap: 0;
  max-width: 100%;
}

.hero-search-input {
  background: var(--brand-white);
  border: none;
  color: var(--brand-primary);
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 0;
}

.hero-search-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.hero-search-input:focus {
  background: var(--brand-white);
  border: none;
  outline: none;
  box-shadow: none;
  color: var(--brand-primary);
}

.btn-search {
  background: var(--brand-blue);
  color: var(--brand-white);
  border: none;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-search:hover {
  background: #003a6d;
  color: var(--brand-white);
}

.hero-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.hero-filter-btn i {
  font-size: 16px;
}

.hero-filter-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-filter-btn.active {
  background: var(--brand-accent);
  color: var(--brand-white);
  border-color: var(--brand-accent);
}

.hero-machines-count {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
}

.hero-machines-count i {
  font-size: 18px;
  color: var(--brand-accent);
}

@media (max-width: 992px) {
  .hero-catalog-new {
    height: auto;
    padding: 40px 0;
  }
}

@media (max-width: 992px) {
  .hero-catalog-bg {
    width: 100%;
    opacity: 0.15;
  }
}

@media (max-width: 992px) {
  .hero-catalog-left {
    padding-right: 20px;
  }
}

@media (max-width: 992px) {
  .hero-catalog-title {
    font-size: 36px;
  }
}

@media (max-width: 992px) {
  .hero-catalog-description {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .hero-catalog-new {
    padding: 30px 0;
  }
}

@media (max-width: 768px) {
  .hero-catalog-new .row {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero-catalog-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-catalog-left {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .hero-catalog-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .hero-search-group {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero-search-input, .btn-search {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-filters {
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .hero-filter-btn {
    font-size: 12px;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .hero-catalog-new {
    padding: 24px 0;
  }
}

@media (max-width: 480px) {
  .hero-catalog-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero-catalog-description {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero-search-section {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .hero-filters {
    margin-bottom: 16px;
  }
}

/* Modern Category Cards */

.top-category-cards {
  padding: 40px 20px;
}

.modern-category-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 380px;
  border: none;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  padding: 0;
}

.modern-category-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.modern-category-card.active {
  border: 2px solid var(--brand-accent);
  box-shadow: 0 20px 50px rgba(241, 119, 32, 0.2);
}

.category-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.category-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, rgba(0, 74, 141, 0.6) 0%, rgba(241, 119, 32, 0.4) 100%);
  z-index: 2;
  transition: opacity 0.4s ease;
}

.modern-category-card:hover .category-card-overlay {
  opacity: 0.8;
}

.category-card-content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: #ffffff;
  text-align: center;
}

.category-card-icon {
  font-size: 48px;
  color: var(--brand-accent);
  margin-bottom: 16px;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}

.modern-category-card:hover .category-card-icon {
  transform: scale(1.15) rotate(-5deg);
  color: var(--brand-blue);
}

.category-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-primary);
  margin: 0 0 12px 0;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.5px;
}

.category-card-desc {
  font-size: 14px;
  color: #666666;
  margin: 0 0 20px 0;
  line-height: 1.6;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-accent) 0%, #ff9644 100%);
  color: #ffffff;
  font-size: 18px;
  margin: 0 auto;
  transition: all 0.4s ease;
}

.modern-category-card:hover .category-card-arrow {
  transform: translateX(4px) scale(1.1);
}

.modern-category-card:active {
  transform: translateY(-8px);
}

/* Responsive Design */

@media (max-width: 992px) {
  .top-category-cards {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 992px) {
  .modern-category-card {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .modern-category-card {
    max-width: 100%;
    height: 360px;
  }
}

@media (max-width: 768px) {
  .category-card-icon {
    font-size: 40px;
    height: 56px;
  }
}

@media (max-width: 768px) {
  .category-card-title {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .category-card-desc {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .modern-category-card {
    max-width: 100%;
    height: 340px;
  }
}

@media (max-width: 480px) {
  .category-card-content {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .category-card-icon {
    font-size: 36px;
    margin-bottom: 12px;
  }
}

/* Mobile Hero Category Tabs */

.hero-catalog-mobile-tabs {
  background: var(--brand-white);
  padding: 16px 12px;
  border-bottom: 1px solid var(--brand-border);
}

.hero-catalog-mobile-tabs .container-fluid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-category-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 0;
  scrollbar-width: none;
  flex: 1;
}

.mobile-category-tabs::-webkit-scrollbar {
  display: none;
}

.mobile-category-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  background: transparent;
  border: none;
  color: var(--brand-secondary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  border-bottom: 3px solid transparent;
  flex: 1;
  min-width: 110px;
  text-align: center;
}

.mobile-category-tab:hover {
  color: var(--brand-accent);
}

.mobile-category-tab.active {
  color: var(--brand-accent);
  border-bottom-color: var(--brand-accent);
}

.mobile-subcategory-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.mobile-subcategory-chips::-webkit-scrollbar {
  display: none;
}

.mobile-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background: rgba(0, 74, 141, 0.08);
  color: var(--brand-blue);
  border: 1px solid rgba(0, 74, 141, 0.15);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.mobile-filter-chip:hover {
  background: rgba(0, 74, 141, 0.15);
}

.mobile-filter-chip.active {
  background: var(--brand-blue);
  color: var(--brand-white);
  border-color: var(--brand-blue);
}

/* Category Cards Section */

.category-card-link {
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card-link:hover {
  transform: translateY(-8px);
}

.category-card-link:hover .category-card {
  box-shadow: 0 8px 20px rgba(0, 74, 141, 0.2);
  border-color: var(--brand-accent) !important;
  background: linear-gradient(135deg, rgba(241, 119, 32, 0.05) 0%, transparent 100%);
}

.category-card-link:hover .category-card i {
  color: var(--brand-accent) !important;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

.category-card-link:hover .category-card h3 {
  color: var(--brand-accent) !important;
}

/* =========================
   MOBILE MENU CHAT INTEGRATION
========================= */

.mobile-chat-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  background: white;
  border-top: 1px solid #e6e6e6;
  padding: 16px 24px;
  margin-top: auto;
  flex-shrink: 0;
}

#mobileMenuChatBtn {
  flex: 1;
  text-align: left;
  font-size: 14px;
  color: var(--brand-blue);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1.4;
}

#mobileMenuChatBtn:active {
  opacity: 0.7;
}

/* Chat window positioning and styling in mobile menu context */

@media (max-width: 767px) {
  #chatContainer {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 1070;
  }
}

@media (max-width: 767px) {
  .chat-window {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 0;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    z-index: 1070;
  }
}

@media (max-width: 767px) {
  .chat-window.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 767px) {
  .chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(90deg, rgba(0,74,141,1) 0%, rgba(241,119,32,1) 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }
}

@media (max-width: 767px) {
  .chat-body {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    overflow: hidden;
  }
}

@media (max-width: 767px) {
  .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .chat-input-row {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: white;
    border-top: 1px solid #e6e6e6;
    flex-shrink: 0;
  }
}

@media (max-width: 767px) {
  .chat-input-row #chatInput {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #e6e6e9;
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .chat-input-row #chatSend {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    background: var(--brand-blue);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
  }
}

/* map

/* Hero: responsive height + image covering */

.hero-wapper {
  height: clamp(300px, 50vh, 800px);
  overflow: hidden;
  position: relative;
}

.hero-wapper .carousel-item {
  height: 100%;
}

.hero-wapper .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -o-object-fit: cover;
}

.hero-wapper .carousel-item .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -o-object-fit: cover;
}

/* MD breakpoint and lower - fixed height for proper image fill */

@media (max-width: 991.98px) {
  .hero-wapper {
    height: 500px;
  }
}

/* Slight mobile height adjustment for small devices */

@media (max-width: 575.98px) {
  .hero-wapper {
    height: 350px;
  }
}

/* push captions up a bit on small screens if necessary */

@media (max-width: 575.98px) {
  .hero-wapper .carousel-caption {
    bottom: 8%;
  }
}

.feature-card {
}

/* =========================
   MOBILE STICKY CATEGORY STRIPE (from mobile-sticky-category-stripe.css)
========================= */

/* Sticky Category Stripe (All Breakpoints) */

.mobile-sticky-category-stripe {
  display: block;
  top: auto;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--brand-border);
}

/* Show when visible class is added with fade-in */

.mobile-sticky-category-stripe.visible {
  opacity: 1;
  pointer-events: auto;
  animation: fadeInSticky 0.4s ease-in-out forwards;
}

/* DEBUG CLASS: Force visibility in Bootstrap Studio */

.mobile-sticky-category-stripe.visible-debug {
  opacity: 1 !important;
  pointer-events: auto !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--brand-border) !important;
}

/* Fade-in animation */

@keyframes fadeInSticky {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive padding and sizing */

@media (max-width: 767px) {
  .mobile-sticky-category-stripe.visible {
    padding: 12px 0;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .mobile-sticky-category-stripe.visible {
    padding: 16px 0;
  }
}

/* Base styling for category links */

.mobile-sticky-cat-link {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

/* Mobile sizing */

@media (max-width: 767px) {
  .mobile-sticky-cat-link {
    font-size: 13px;
    font-weight: 600;
  }
}

/* Tablet sizing */

@media (min-width: 768px) and (max-width: 1199px) {
  .mobile-sticky-cat-link {
    font-size: 14px;
    font-weight: 600;
    margin: 0 16px;
  }
}

/* Desktop sizing */

@media (min-width: 1200px) {
  .mobile-sticky-cat-link {
    font-size: 15px;
    font-weight: 700;
    margin: 0 24px;
  }
}

/* Inactive state */

.mobile-sticky-cat-link:not(.active) {
  color: var(--brand-blue) !important;
}

.mobile-sticky-cat-link:not(.active)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-accent);
  transition: width 0.3s ease;
}

.mobile-sticky-cat-link:not(.active):hover::after {
  width: 100%;
}

/* Active state: orange color + underline */

.mobile-sticky-cat-link.active {
  color: var(--brand-accent) !important;
}

.mobile-sticky-cat-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-accent);
  transition: width 0.3s ease;
}

/* =========================
   SEARCH PAGE (from search-page.css)
========================= */

/* =============================================
   SEARCH PAGE STYLES - DGT Solutions Inc.
   Professional Industrial Equipment Search
============================================= */

:root {
  --search-primary: #004A8D;
  --search-secondary: #475569;
  --search-accent: #F17720;
  --search-white: #FFFFFF;
  --search-border: #E5E7EB;
  --search-bg-light: #F9FAFB;
  --search-text-dark: #111111;
}

/* =============================================
   HERO SECTION
============================================= */

.search-hero {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-bottom: 1px solid var(--search-border);
}

.search-hero h1 {
  color: var(--search-text-dark);
  letter-spacing: -0.5px;
  font-weight: 700;
}

.search-hero .lead {
  font-size: 1.125rem;
}

/* =============================================
   SEARCH INPUT & AUTOCOMPLETE
============================================= */

.search-input-container {
  position: relative;
  margin-bottom: 2rem;
}

.search-input-container .input-group {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  overflow: hidden;
}

.search-input-container .input-group-text {
  padding: 0 1.25rem;
  color: var(--search-secondary);
}

.search-input-container .form-control {
  border: 1px solid var(--search-border);
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  color: var(--search-text-dark);
  transition: all 0.3s ease;
}

.search-input-container .form-control:focus {
  border-color: var(--search-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 74, 141, 0.15);
  color: var(--search-text-dark);
}

.search-input-container .form-control::placeholder {
  color: #9ca3af;
}

/* =============================================
   AUTOCOMPLETE DROPDOWN
============================================= */

.search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--search-white);
  border: 1px solid var(--search-border);
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 1050;
}

.search-autocomplete-dropdown.active {
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.autocomplete-item {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--search-border);
  cursor: pointer;
  transition: background-color 0.2s ease;
  color: var(--search-text-dark);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover, .autocomplete-item.active {
  background-color: var(--search-bg-light);
  color: var(--search-primary);
}

.autocomplete-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #9ca3af;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

.autocomplete-highlight {
  font-weight: 600;
  color: var(--search-accent);
}

/* =============================================
   FILTERS SIDEBAR
============================================= */

.filter-group {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--search-border);
}

.filter-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-group h6 {
  color: var(--search-text-dark);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-option {
  display: flex;
  align-items: center;
  user-select: none;
}

.filter-option input[type="checkbox"] {
  cursor: pointer;
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--search-primary);
}

.filter-option label {
  cursor: pointer;
  margin: 0 0 0 0.75rem;
  flex: 1;
  color: var(--search-secondary);
  font-size: 0.95rem;
}

.filter-option input[type="checkbox"]:checked + label {
  color: var(--search-primary);
  font-weight: 600;
}

.filter-count {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-left: auto;
}

#clearFiltersBtn {
  border-color: var(--search-border);
  color: var(--search-secondary);
  transition: all 0.3s ease;
}

#clearFiltersBtn:hover {
  background-color: var(--search-bg-light);
  border-color: var(--search-primary);
  color: var(--search-primary);
}

/* =============================================
   RESULTS SECTION
============================================= */

#resultsTitle {
  color: var(--search-text-dark);
  font-weight: 700;
}

#resultsInfo {
  font-size: 0.95rem;
}

#sortSelect {
  border-color: var(--search-border);
  color: var(--search-secondary);
}

#sortSelect:focus {
  border-color: var(--search-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 74, 141, 0.15);
}

/* =============================================
   PRODUCT CARDS
============================================= */

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--search-border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--search-white);
}

.product-card:hover {
  border-color: var(--search-primary);
  box-shadow: 0 10px 30px rgba(0, 74, 141, 0.12);
  transform: translateY(-4px);
}

.product-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--search-bg-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--search-text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  min-height: 2.8rem;
}

.product-card-description {
  font-size: 0.95rem;
  color: var(--search-secondary);
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.5;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.product-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background-color: var(--search-bg-light);
  color: var(--search-primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.product-card-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  background-color: var(--search-primary);
  border-color: var(--search-primary);
  color: var(--search-white);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--search-primary);
  white-space: nowrap;
}

.product-card-btn:hover {
  background-color: var(--search-accent);
  border-color: var(--search-accent);
  color: var(--search-white);
  text-decoration: none;
}

/* =============================================
   EMPTY STATE
============================================= */

#emptyState {
  padding: 3rem 2rem;
  background: var(--search-bg-light);
  border-radius: 0.5rem;
  border: 1px dashed var(--search-border);
}

#emptyState h4 {
  color: var(--search-text-dark);
  font-weight: 600;
}

#suggestedCategories .btn-outline-secondary {
  border-color: var(--search-border);
  color: var(--search-primary);
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

#suggestedCategories .btn-outline-secondary:hover {
  background-color: var(--search-primary);
  border-color: var(--search-primary);
  color: var(--search-white);
}

/* =============================================
   RESPONSIVE DESIGN
============================================= */

@media (max-width: 991.98px) {
  .search-hero {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}

@media (max-width: 991.98px) {
  .search-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 991.98px) {
  .search-hero .lead {
    font-size: 1rem;
  }
}

@media (max-width: 991.98px) {
  .col-lg-3 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 991.98px) {
  .filter-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 991.98px) {
  .filter-group:nth-last-child(1) {
    border-bottom: 1px solid var(--search-border);
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .search-hero h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 767.98px) {
  .search-input-container .input-group-lg {
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .search-input-container .input-group-text {
    border-radius: 0.5rem 0.5rem 0 0;
  }
}

@media (max-width: 767.98px) {
  .search-input-container .form-control {
    border-radius: 0 0 0.5rem 0.5rem;
  }
}

@media (max-width: 767.98px) {
  #sortSelect {
    margin-top: 1rem;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .product-card-footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 767.98px) {
  .product-card-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .filter-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .d-flex.justify-content-between {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 575.98px) {
  .search-hero h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .container-lg {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 575.98px) {
  .row > [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .product-card-body {
    padding: 1rem;
  }
}

@media (max-width: 575.98px) {
  .search-autocomplete-dropdown {
    max-height: 300px;
  }
}

/* =============================================
   UTILITY CLASSES
============================================= */

.bg-light {
  background-color: var(--search-bg-light) !important;
}

.text-secondary {
  color: var(--search-secondary) !important;
}

.border-light-subtle {
  border-color: var(--search-border) !important;
}

.sticky-top {
  top: 0;
  z-index: 1020;
}

/* =========================
   STICKY NAVBAR (from sticky-navbar.css)
========================= */

/* Sticky Navbar Styles */

.sticky-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  width: 100%;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sticky-navbar.hidden {
  transform: translateY(-100%);
}

.sticky-navbar-wrapper {
  display: flex;
  align-items: center;
  height: 38px;
  background: var(--brand-primary);
  padding: 0;
}

.sticky-navbar .container {
  display: flex;
  align-items: center;
  width: 100%;
  padding-right: 0px;
  padding-left: 0px;
}

.sticky-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.sticky-nav-logo img {
  height: 24px;
  width: auto;
}

.sticky-nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 20px;
  margin-right: auto;
}

.sticky-nav-menu a {
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.sticky-nav-menu a:hover {
  color: var(--brand-accent);
}

.sticky-search-box {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  margin-right: 0;
}

.sticky-search-box input {
  background: #474d52 !important;
  border: none !important;
  border-radius: 0 !important;
  color: var(--brand-white);
  height: 38px;
  font-size: 13px;
  padding: 8px 12px;
}

.sticky-search-box input::placeholder {
  color: rgb(167, 167, 167);
}

.sticky-search-btn {
  height: 38px;
  background: #474d52 !important;
  border: none !important;
  border-radius: 0 !important;
  color: rgb(167, 167, 167);
  cursor: pointer;
  padding: 0 12px;
}

.sticky-search-btn:hover {
  background: #525759 !important;
}

/* Hide on mobile */

@media (max-width: 767px) {
  .sticky-navbar {
    display: none;
  }
}

/* Smooth scroll padding adjustment */

html {
  scroll-padding-top: 38px;
}

/* ===================================
   FLOATING SEARCH COMPONENT STYLES
=================================== */

#floatingSearchButton:hover {
  background: #ff8c1a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: scale(1.05);
}

#floatingSearchButton.show {
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-width: 768px) {
  #backToTop {
    position: fixed;
    right: calc(12px + env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 768px) {
  .dgt-launcher-wrap {
    position: fixed;
    right: calc(12px + env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* Floating Search Container */

#floatingSearchContainer {
  position: fixed;
  bottom: 90px;
  right: 28px;
  width: 50px;
  background: white;
  border-radius: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
  z-index: 997;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  height: 50px;
}

#floatingSearchContainer.expanded {
  width: 320px;
  opacity: 1;
  visibility: visible;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

#floatingSearchContainer.show {
  opacity: 1;
  visibility: visible;
  overflow: visible;
}

/* Floating Search Input */

#floatingSearchInput {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 14px;
  background: transparent;
  color: #333;
  width: 100%;
  height: 100%;
}

#floatingSearchInput::placeholder {
  color: #999;
  font-style: italic;
}

#floatingSearchInput:focus {
  outline: none;
}

/* Floating Search Close Button */

#floatingSearchClose {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: #ff7a00;
  color: white;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.2s ease;
}

#floatingSearchClose:hover {
  background: #ff8c1a;
}

#floatingSearchContainer.expanded #floatingSearchClose {
  display: flex;
}

/* Hide button when expanded */

#floatingSearchContainer.expanded #floatingSearchButton {
  display: none;
}

/* Floating Search Icon (inside button) */

#floatingSearchIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 22px;
}

/* Floating Search Suggestions Dropdown */

#floatingSearchSuggestions {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1001;
  margin-bottom: 8px;
  display: none;
}

#floatingSearchSuggestions.show {
  display: block;
  animation: slideUpFloating 0.2s ease;
}

@keyframes slideUpFloating {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.floating-autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.floating-autocomplete-item:last-child {
  border-bottom: none;
}

.floating-autocomplete-item:hover {
  background-color: #f8f9fa;
}

.floating-autocomplete-title {
  font-weight: 500;
  color: var(--brand-blue, #004A8D);
  font-size: 14px;
}

.floating-autocomplete-title strong {
  color: var(--brand-accent, #FF8C42);
  font-weight: 600;
}

.floating-autocomplete-match-type {
  font-size: 12px;
  color: #999;
  margin-left: 12px;
  white-space: nowrap;
}

.floating-autocomplete-item.no-results {
  text-align: center;
  color: #999;
  cursor: default;
  padding: 20px 16px;
}

.floating-autocomplete-item.no-results:hover {
  background-color: transparent;
}

/* Machine Card Selection Highlight */

.machine-selected-floating {
  outline: 3px solid var(--brand-accent, #FF8C42) !important;
  outline-offset: 2px;
}

/* Responsive adjustments */

@media (max-width: 768px) {
  #floatingSearchContainer.expanded {
    width: 280px;
  }
}

@media (min-width: 576px) {
  #chatButton {
    right: 10px;
  }
}

/* =========================
   MOBILE FLOATING BUTTONS REARRANGEMENT (max-width: 768px)
   - Position three floating buttons horizontally at bottom center
   - Back to Top, Chat, and Floating Search buttons
   - Equal spacing between buttons
   - Remain above all page content (z-index maintained)
========================= */

/* Back to Top Button - leftmost position */

/* Chat Button - center position */

@media (max-width: 768px) {
  .floating-chat, #chatButton {
    position: fixed;
    bottom: 20px;
    right: auto;
    left: calc(50% - 25px);
    width: 52px;
    height: 52px;
    z-index: 1050;
  }
}

/* Floating Search Button - rightmost position */

/* Floating Search Container - adjust position to match button */

@media (max-width: 768px) {
  #floatingSearchContainer {
    position: fixed;
    bottom: 20px;
    right: auto;
    /*left: calc(50% + 60px);*/
    z-index: 997;
  }
}

/* ===================================
   SEARCH AUTOCOMPLETE STYLES
=================================== */

#searchSuggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  z-index: 9999 !important;
  margin-top: -1px;
}

.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background-color: #f8f9fa;
}

.autocomplete-title {
  font-weight: 500;
  color: var(--brand-blue, #004A8D);
  font-size: 14px;
}

.autocomplete-title strong {
  color: var(--brand-accent, #FF8C42);
  font-weight: 600;
}

.autocomplete-match-type {
  font-size: 12px;
  color: #999;
  margin-left: 12px;
  white-space: nowrap;
}

.autocomplete-item.no-results {
  text-align: center;
  color: #999;
  cursor: default;
  padding: 20px 16px;
}

.autocomplete-item.no-results:hover {
  background-color: transparent;
}

/* ===================================
   MACHINE CARD HIGHLIGHT ANIMATION
=================================== */

@keyframes flashOutline {
  0% {
    outline: 3px solid var(--brand-accent, #FF8C42);
    outline-offset: 2px;
  }
  25% {
    outline: none;
  }
  50% {
    outline: 3px solid var(--brand-accent, #FF8C42);
    outline-offset: 2px;
  }
  75% {
    outline: none;
  }
  100% {
    outline: 3px solid var(--brand-accent, #FF8C42);
    outline-offset: 2px;
  }
}

.machine-highlight-flash {
  animation: flashOutline 1.5s ease-in-out;
}

/* Make search input wrapper position relative for dropdown positioning */

.search-wrapper {
  position: relative;
}

.search-wrapper .input-group {
  position: relative;
}

/* Clear button smooth appearance animation */

/* Clear button smooth appearance animation */

/* Search icon and clear button styling */

.search-icon-btn {
  background-color: white !important;
  border-color: #e0e0e0 !important;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#machineSearchIcon {
  opacity: 1;
  visibility: visible;
}

#machineSearchClear {
  opacity: 0;
  visibility: hidden;
}

.search-icon-btn:hover {
  background-color: #f0f0f0 !important;
}

.search-icon-btn:active {
  background-color: #e0e0e0 !important;
}

/* Show X button when input has content (via JavaScript) */

#machineSearchClear[style*="display: flex"] {
  opacity: 1;
  visibility: visible;
}

#machineSearchIcon[style*="display: none"] {
  opacity: 0;
  visibility: hidden;
}

/* ===================================
   OPTIMIZED VIDEO COMPONENT
=================================== */

.clickable-video video {
  display: none;
}

.clickable-video .thumbnail {
  cursor: pointer;
}

.card-header .clickable-video {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.card-header .thumbnail, .card-header video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.desktop-menu {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Mobile sticky elements under header */

@media (max-width: 767px) {
  #mobile-sticky-category-stripe {
    z-index: 998;
  }
}

@media (max-width: 767px) {
  .category-chips-wrapper {
    position: sticky !important;
    top: 139px !important;
    z-index: 997;
    background: white !important;
    padding: 12px 0;
  }
}

.breadcrumbs {
  position: sticky;
  top: 38px;
  z-index: 999;
}

/* ===================================
   INTEGRATED SYSTEMS CARDS
=================================== */

.integrated-systems-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.integrated-systems-card {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border-radius: 0.375rem;
  width: 100%;
}

.integrated-systems-card.reverse {
  direction: rtl;
}

.integrated-systems-card.reverse > * {
  direction: ltr;
}

.integrated-systems-card:nth-child(2), .integrated-systems-card:nth-child(4) {
  background-color: #f3f4f6;
}

.integrated-systems-card-image {
  max-width: 600px;
  max-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  flex-shrink: 0;
  object-fit: cover;
}

.integrated-systems-card-image img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
}

.integrated-systems-card-content h4 {
  font-weight: 700;
  color: var(--brand-secondary);
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.integrated-systems-card-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.integrated-systems-card-content li {
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  position: relative;
  color: var(--brand-secondary);
  font-size: 0.95rem;
}

.integrated-systems-card-content li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--brand-accent);
  display: block;
}

@media (max-width: 1024px) {
  .integrated-systems-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .integrated-systems-card-image {
    width: 500px;
    height: 380px;
  }
}

@media (max-width: 1024px) {
  .integrated-systems-card.reverse {
    direction: ltr;
  }
}

header, .navbar, .navbar-nav {
  position: relative;
  z-index: 99999 !important;
}

@media (min-width: 1500px) {
  .hero-container {
    width: 80vw;
    max-width: none;
  }
}

/* --- Consolidated CSS: appended from /search-highlights.css --- */

.machine-selected-static {
  outline: 3px solid var(--brand-accent);
  outline-offset: 6px;
  transition: outline-color 0.15s ease, box-shadow 0.15s ease;
  z-index: 5;
  position: relative;
}

/* Keep the older flash animation in case other scripts use it */

.machine-highlight-flash {
  animation: machine-flash 1s ease-in-out 3;
}

@keyframes machine-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(241,119,32,0.00);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(241,119,32,0.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(241,119,32,0.00);
  }
}

/* Optional subtle style for search matches (keeps full catalog visible) */

.search-result-match {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* =========================
   CONSOLIDATED CSS FROM ALL ADDITIONAL FILES
========================= */

/* Configuration Cards Concept styles - PROTECTED COMPONENT (config-cards.css)
   Copy verbatim - no modifications to pill hover, image preview, tooltips, or z-index */

.config-cards .card {
  border-radius: .75rem;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,0.06);
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.config-pill-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8eaed;
  color: #475569;
  padding: .6rem 1.3rem;
  border: 1.5px solid #d0d4da;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  margin-right: .5rem;
  margin-bottom: .5rem;
  margin-top: .5rem;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  min-height: 2.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: center;
  min-width: 260px;
}

.config-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8eaed;
  color: #475569;
  padding: .6rem 1.3rem;
  border: 1.5px solid #d0d4da;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  margin-right: .5rem;
  margin-bottom: .5rem;
  margin-top: .5rem;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  min-height: 2.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: center;
}

@media (min-width: 992px) {
  .config-pill {
    cursor: pointer;
  }
}

@media (min-width: 992px) {
  .config-pill:hover {
    background: #dfe2e8;
    border-color: #bcc0c9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
  }
}

.config-pill:focus {
  outline: 2px solid #004a8d;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 74, 141, 0.1);
}

.config-pill:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

@media (max-width: 991px) {
  .config-pill[data-bs-toggle="tooltip"], .config-pill.has-tooltip-image {
    background: #e8eaed;
    border-color: #d0d4da;
  }
}

@media (max-width: 991px) {
  .config-pill[data-bs-toggle="tooltip"]:active, .config-pill.has-tooltip-image:active {
    background: #d0d4da;
    border-color: #bcc0c9;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
    transform: scale(0.98);
  }
}

@media (max-width: 991px) {
  .config-pill {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

#config-cards-concept .card-title {
  color: var(--search-secondary);
  font-weight: 700;
}

#config-cards-concept .small {
  color: var(--search-primary);
}

.config-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.config-modal-backdrop.show {
  display: block;
  opacity: 1;
}

.config-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.config-modal.show {
  display: flex;
}

.config-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  max-width: 90vw;
  max-height: 85vh;
  animation: slideUpConfig 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

@keyframes slideUpConfig {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.config-modal-body {
  padding: 30px 20px 20px 20px;
  text-align: center;
}

.config-modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--search-secondary);
  margin: 0 0 15px 0;
  word-break: break-word;
}

.config-modal-image-wrapper {
  margin-top: 20px;
}

.config-modal-image {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
}

.config-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  border: none;
  color: white;
  font-size: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1051;
}

.config-modal-close:hover, .config-modal-close:focus {
  background: rgba(0, 0, 0, 0.9);
  outline: none;
  transform: scale(1.1);
}

body.config-modal-open {
  overflow: hidden;
}

/* =========================
   CONFIGURATION CARDS (from config-cards.css) - PROTECTED COMPONENT
   Copy verbatim - no modifications to pill hover, image preview, tooltips, or z-index
========================= */

/* Configuration Cards Concept styles - prototype only */

.config-cards .card {
  border-radius: .75rem;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,0.06);
  border: 1px solid rgba(15, 23, 42, 0.04);
}

/* Pills - Interactive Button Style */

.config-pill-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8eaed;
  color: #475569;
  padding: .6rem 1.3rem;
  border: 1.5px solid #d0d4da;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  margin-right: .5rem;
  margin-bottom: .5rem;
  margin-top: .5rem;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  min-height: 2.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: center;
  min-width: 260px;
}

.config-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8eaed;
  color: #475569;
  padding: .6rem 1.3rem;
  border: 1.5px solid #d0d4da;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  margin-right: .5rem;
  margin-bottom: .5rem;
  margin-top: .5rem;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  min-height: 2.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: center;
}

/* Hover state - Desktop only */

@media (min-width: 992px) {
  .config-pill {
    cursor: pointer;
  }
}

@media (min-width: 992px) {
  .config-pill:hover {
    background: #dfe2e8;
    border-color: #bcc0c9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
  }
}

/* Focus state - Keyboard accessibility */

.config-pill:focus {
  outline: 2px solid #004a8d;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 74, 141, 0.1);
}

.config-pill:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* Mobile: Interactive active/tap states */

@media (max-width: 991px) {
  .config-pill[data-bs-toggle="tooltip"], .config-pill.has-tooltip-image {
    background: #e8eaed;
    border-color: #d0d4da;
  }
}

@media (max-width: 991px) {
  .config-pill[data-bs-toggle="tooltip"]:active, .config-pill.has-tooltip-image:active {
    background: #d0d4da;
    border-color: #bcc0c9;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
    transform: scale(0.98);
  }
}

/* Smart text wrapping: Allow wrapping only if needed */

@media (max-width: 991px) {
  .config-pill {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

/* Titles and tiny copy tuned to page design language */

#config-cards-concept .card-title {
  color: var(--search-secondary);
  font-weight: 700;
}

#config-cards-concept .small {
  color: var(--search-primary);
}

/* Config Modal Styles */

.config-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.config-modal-backdrop.show {
  display: block;
  opacity: 1;
}

.config-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.config-modal.show {
  display: flex;
}

.config-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  max-width: 90vw;
  max-height: 85vh;
  animation: slideUpConfig 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

@keyframes slideUpConfig {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.config-modal-body {
  padding: 30px 20px 20px 20px;
  text-align: center;
}

.config-modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--search-secondary);
  margin: 0 0 15px 0;
  word-break: break-word;
}

.config-modal-image-wrapper {
  margin-top: 20px;
}

.config-modal-image {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
}

.config-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  border: none;
  color: white;
  font-size: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1051;
}

.config-modal-close:hover, .config-modal-close:focus {
  background: rgba(0, 0, 0, 0.9);
  outline: none;
  transform: scale(1.1);
}

/* Prevent body scroll when modal is open */

body.config-modal-open {
  overflow: hidden;
}

/* =========================
   EXPANDABLE IMAGE (from expandable-image.css)
========================= */

.expandable-image-container {
  position: relative;
  max-height: 400px;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin: 2rem 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background-color: #f8f9fa;
}

.expandable-image-container:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease-in-out, max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable-image-container.expanded {
  max-height: 2000px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.expandable-image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: align-items 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable-image-container.expanded .expandable-image-wrapper {
  align-items: flex-start;
}

.expandable-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transform: scale(1);
  top: -150px;
}

.expandable-image-container:hover .expandable-image {
  transform: scale(1.02);
  transition: transform 0.3s ease-in-out;
}

.expandable-image-container.expanded .expandable-image {
  object-fit: contain;
  transform: scale(1);
}

@media (max-width: 768px) {
  .expandable-image-container {
    max-height: 250px;
    margin: 1.5rem 0;
  }
}

@media (max-width: 768px) {
  .expandable-image-container.expanded {
    max-height: 1500px;
  }
}

@media (max-width: 768px) {
  .expandable-image-container:hover .expandable-image {
    transform: scale(1);
  }
}

/* Enlarge icon overlay for case erector image */

.enlarge-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
  z-index: 3;
  cursor: pointer;
}

/* Slight hover effect */

.position-relative:hover .enlarge-overlay, .position-relative:focus .enlarge-overlay {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.05);
}

/* Make sure the icon scales nicely on small screens */

@media (max-width: 576px) {
  .enlarge-overlay {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
  }
}

/* =========================
   HERO RESPONSIVE (from hero-responsive.css)
========================= */

/* Hero Section Mobile Responsiveness */

/* On phones only: place image above content so buttons (inside content) appear under image.
   Use Bootstrap's xs breakpoint (max-width: 575.98px). Larger screens keep original layout. */

@media (max-width: 575.98px) {
  .hero-section .row {
    flex-direction: column-reverse;
  }
}

/* Ensure image column appears first and gets spacing */

@media (max-width: 575.98px) {
  .hero-section .col-lg-6:last-child {
    order: 1;
    margin-bottom: 1rem;
  }
}

/* Content column (title/description/buttons) follows the image */

@media (max-width: 575.98px) {
  .hero-section .col-lg-6:first-child {
    order: 2;
  }
}

/* Title (we already render a mobile title above the row) keep spacing */

@media (max-width: 575.98px) {
  .hero-section h1 {
    margin-bottom: 1rem;
  }
}

/* Full-width buttons on phones and stacked vertically */

@media (max-width: 575.98px) {
  .hero-section .btn {
    width: 100%;
    margin-left: 0 !important;
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section .btn-group, .hero-section .d-flex.flex-column.flex-md-row {
    display: block;
  }
}

/* Adjust badge and lead spacing for phones */

@media (max-width: 575.98px) {
  .hero-section .custom-badge {
    margin-bottom: 1rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section .lead {
    margin-bottom: 1rem;
  }
}

/* Keep tablet and desktop behavior unchanged here (no column-reverse) */

/* Small utility: make sure buttons keep consistent look on small devices */

@media (max-width: 768px) {
  .hero-section .btn {
    font-size: 1rem;
  }
}

/* =========================
   IMAGE MODAL (from image-modal.css)
========================= */

/* Image Modal for Mobile Devices */

.image-modal-trigger {
  cursor: pointer;
  position: relative;
}

/* Mobile touch indicator (shows on small screens) */

@media (max-width: 991px) {
  .image-modal-trigger::after {
    content: '🔍';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
}

/* Modal Backdrop */

.image-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal-backdrop.show {
  display: block;
  opacity: 1;
}

/* Modal Container */

.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.image-modal.show {
  display: flex;
}

/* Modal Content */

.image-modal-content {
  position: relative;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  max-width: 90vw;
  max-height: 90vh;
  animation: slideUp 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Modal Image */

.image-modal-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 85vh;
  object-fit: contain;
}

/* Close Button */

.image-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 1051;
}

.image-modal-close:hover, .image-modal-close:focus {
  background: rgba(0, 0, 0, 0.9);
  outline: none;
}

/* Prevent body scroll when modal is open */

body.modal-open {
  overflow: hidden;
}

/* Tablet and larger screens - no modal, just regular click behavior */

@media (min-width: 992px) {
  .image-modal-trigger::after {
    display: none;
  }
}

@media (min-width: 992px) {
  .image-modal-trigger {
    cursor: default;
  }
}

/* =========================
   RESPONSIVE TYPOGRAPHY (from responsive-typography.css)
========================= */

/* Responsive Typography */

/* Headings */

h1, .display-4 {
  font-size: clamp(24px, 5vw, 44px);
  line-height: 1.2;
}

h2 {
  font-size: clamp(20px, 4.5vw, 36px);
  line-height: 1.2;
}

h3 {
  font-size: clamp(18px, 4vw, 28px);
}

h4 {
  font-size: clamp(16px, 3.5vw, 24px);
}

h5 {
  font-size: clamp(14px, 3vw, 20px);
}

h6 {
  font-size: clamp(12px, 2.5vw, 16px);
}

/* Paragraph text */

p, body {
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.6;
}

.lead {
  font-size: clamp(15px, 2.8vw, 18px);
  line-height: 1.6;
}

/* Small text */

.small, small {
  font-size: clamp(11px, 2vw, 14px);
}

/* List items */

li {
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.6;
}

/* Card text */

.card-body {
  font-size: clamp(14px, 2.5vw, 16px);
}

/* Table text */

table {
  font-size: clamp(13px, 2.3vw, 15px);
}

/* Badge/label text */

.badge, label {
  font-size: clamp(11px, 2vw, 13px);
}

/* Button text */

.btn {
  font-size: clamp(12px, 2.2vw, 16px);
  padding: clamp(8px, 2vw, 12px) clamp(16px, 3vw, 24px);
}

.btn-lg {
  font-size: clamp(14px, 2.5vw, 18px);
  padding: clamp(10px, 2vw, 14px) clamp(20px, 3.5vw, 32px);
}

/* Responsive spacing adjustments */

.py-5 {
  padding-top: clamp(30px, 5vw, 48px) !important;
  padding-bottom: clamp(30px, 5vw, 48px) !important;
}

.mb-5 {
  margin-bottom: clamp(20px, 3.5vw, 48px) !important;
}

.mb-4 {
  margin-bottom: clamp(15px, 3vw, 32px) !important;
}

.mb-3 {
  margin-bottom: clamp(12px, 2.5vw, 24px) !important;
}

.gap-4 {
  gap: clamp(16px, 3vw, 32px) !important;
}

.gap-5 {
  gap: clamp(20px, 3.5vw, 48px) !important;
}

/* Responsive icon sizing */

img[width="79"], img[width="80"], img[height="60"] {
  width: clamp(50px, 8vw, 80px) !important;
  height: clamp(40px, 6.5vw, 60px) !important;
}

/* Mobile adjustments */

@media (max-width: 576px) {
  h1, .display-4 {
    font-size: clamp(20px, 6vw, 24px);
  }
}

@media (max-width: 576px) {
  h2 {
    font-size: clamp(18px, 5.5vw, 20px);
  }
}

@media (max-width: 576px) {
  h3 {
    font-size: clamp(16px, 4.5vw, 18px);
  }
}

@media (max-width: 576px) {
  p, body {
    font-size: clamp(13px, 3vw, 14px);
  }
}

@media (max-width: 576px) {
  .py-5 {
    padding-top: clamp(20px, 4vw, 30px) !important;
    padding-bottom: clamp(20px, 4vw, 30px) !important;
  }
}

@media (max-width: 576px) {
  .gap-4, .gap-5 {
    gap: clamp(12px, 2.5vw, 16px) !important;
  }
}

/* =========================
   VIDEO RESPONSIVE (from video-responsive.css)
========================= */

/* Responsive styles for the video component */

.clickable-video {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Constrain the inner video area so it scales nicely on large screens,
   but allow it to be full width on small screens */

.clickable-video .video-wrapper {
  width: 100%;
  max-width: 900px;
  position: relative;
}

/* Make both thumbnail and video scale fluidly and keep rounded corners */

.clickable-video .thumbnail, .clickable-video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  object-fit: cover;
}

/* By default the video is hidden; the existing JS will show it and hide the thumbnail.
   Also allow CSS-only fallback: if the wrapper gets a playing class, swap visibility. */

.clickable-video video {
  display: none;
}

.clickable-video.playing video {
  display: block;
}

.clickable-video.playing .thumbnail {
  display: none;
}

/* Play overlay (centered circular play icon) */

.clickable-video .play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.15s ease;
}

.clickable-video .play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

/* Simple CSS triangle "play" icon inside the circle */

.clickable-video .play-overlay::before {
  content: "";
  display: inline-block;
  margin-left: 6px;
  width: 0;
  height: 0;
  border-left: 22px solid #fff;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

/* Small screens: reduce max width and overlay size */

@media (max-width: 768px) {
  .clickable-video .video-wrapper {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 768px) {
  .clickable-video .play-overlay {
    width: 68px;
    height: 68px;
  }
}

@media (max-width: 768px) {
  .clickable-video .play-overlay::before {
    border-left-width: 16px;
    border-top-width: 10px;
    border-bottom-width: 10px;
    margin-left: 4px;
  }
}

/* Extra small screens: remove horizontal padding */

@media (max-width: 400px) {
  .clickable-video .video-wrapper {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* =========================
   CASE PACKING STEPS (from case-packing-steps.css)
========================= */

/* Enable native smooth scrolling for anchor links */

.steps-container {
  position: relative;
  align-items: stretch;
}

.step-card-wrapper {
  position: relative;
}

/* Make the entire card area an accessible clickable region */

.step-card-link {
  display: block;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

/* Base card transition and subtle border so we can highlight on hover */

.step-card-link .card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  border: 1px solid transparent;
}

/* Hover/focus - professional lift and subtle shadow increase */

.step-card-link:hover .card, .step-card-link:focus .card {
  transform: translateY(-5px);
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,0.12);
  border-color: var(--brand-accent);
}

/* Slightly reduced lift for active/focus-visible states */

.step-card-link:active .card, .step-card-link:focus-visible .card {
  transform: translateY(-3px);
}

/* Subtle icon emphasis on hover */

.step-card-link .card .card-body img {
  transition: filter .25s ease, opacity .25s ease;
}

.step-card-link:hover .card .card-body img {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
  opacity: 0.98;
}

/* Horizontal arrows on LG and up (desktop only) */

@media (min-width: 992px) {
  .step-card-wrapper:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #475569;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    z-index: 2;
    opacity: 0.6;
  }
}

/* Hide the arrows below desktop breakpoint (already ensured by the media query) */

/* (No additional rules required; the ::after only exists >= 992px) */

/* Orange checkmark list styling */

.checkmark-list {
  list-style: none;
  padding-left: 0;
}

.checkmark-list li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.75rem;
}

.checkmark-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #FF7A00;
  font-weight: bold;
  font-size: 1.25rem;
}

.expandable-image-container.expanded .expandable-image-wrapper {
  align-items: flex-start;
}

#fullImageModal {
}

#fullImageModal {
}

/* Remove border/outline on hover/focus/active for the 'View Full Portfolio' button in the mega menu */

.mega-menu-wrapper .dropdown-menu .btn.btn-link:hover, .mega-menu-wrapper .dropdown-menu .btn.btn-link:focus, .mega-menu-wrapper .dropdown-menu .btn.btn-link:active {
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  background-color: transparent !important;
  text-decoration: none !important;
}

/* Tooltip image for config pills (desktop only) */

.config-pill {
  position: relative;
  display: inline-block;
  cursor: default;
}

/* The inline tooltip image (hidden by default) */

.config-pill .tooltip-image {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translate(-50%);
  width: 300px;
  max-width: 38vw;
  display: none;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
  z-index: 99999;
  background: #fff;
}

/* Show on hover/focus (keyboard accessible via focus-within) */

.config-pill:hover .tooltip-image, .config-pill:focus-within .tooltip-image, .config-pill:active .tooltip-image {
  display: block;
}

/* Slight responsive behavior: keep the image within viewport and reduce size on smaller desktops */

@media (max-width: 1200px) {
  .config-pill .tooltip-image {
    width: 150px;
    transform: translate(10px, -50%);
  }
}

/* Disable the hover tooltip on small devices to avoid obstructing content */

@media (max-width: 768px) {
  .config-pill .tooltip-image {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .config-pill {
    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .config-pill {
  }
}

.table-responsive {
  overflow-x: visible !important;
}

/* =========================
   MACHINE PAGE HERO INDICATORS (from machine-page-hero-indicators.css)
========================= */

/* MACHINE PAGE HERO CAROUSEL INDICATORS
   Dedicated component for Machine Detail Pages
   - Uses brand blue color instead of default white
   - Scoped to .hero-carousel-indicators class only
   - Does not affect other carousels on the website */

.hero-carousel-indicators {
  /*position: relative;*/
  display: flex;
  justify-content: center;
  padding: 1rem 0 0.5rem 0;
  margin: 0;
  list-style: none;
  gap: 8px;
}

.hero-carousel-indicators [data-bs-slide-to] {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 10px;
  height: 10px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background-color: rgba(0, 74, 141, 0.35);
  border: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 1;
  visibility: visible;
}

/* Inactive state - semi-transparent blue */

.hero-carousel-indicators [data-bs-slide-to] {
  background-color: rgba(0, 74, 141, 0.35);
}

.hero-carousel-indicators [data-bs-slide-to]:hover {
  background-color: rgba(0, 74, 141, 0.55);
  transform: scale(1.15);
}

/* Active state - solid brand blue */

.hero-carousel-indicators [data-bs-slide-to].active {
  background-color: var(--brand-blue);
  width: 12px;
  height: 12px;
  margin: -1px 0;
  box-shadow: 0 2px 8px rgba(0, 74, 141, 0.25);
}

.hero-carousel-indicators [data-bs-slide-to].active:hover {
  transform: scale(1.25);
  box-shadow: 0 4px 12px rgba(0, 74, 141, 0.35);
}

/* Accessibility: ensure focus state is visible for keyboard navigation */

.hero-carousel-indicators [data-bs-slide-to]:focus {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
  border-radius: 50%;
}

.hero-carousel-indicators [data-bs-slide-to]:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

/* Responsive adjustments for smaller screens */

@media (max-width: 768px) {
  .hero-carousel-indicators {
    padding: 0.75rem 0 0.375rem 0;
    gap: 6px;
  }
}

@media (max-width: 768px) {
  .hero-carousel-indicators [data-bs-slide-to] {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 768px) {
  .hero-carousel-indicators [data-bs-slide-to].active {
    width: 10px;
    height: 10px;
    margin: -1px 0;
  }
}

@media (max-width: 480px) {
  .hero-carousel-indicators {
    padding: 0.5rem 0 0.25rem 0;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .hero-carousel-indicators [data-bs-slide-to] {
    width: 7px;
    height: 7px;
  }
}

@media (max-width: 480px) {
  .hero-carousel-indicators [data-bs-slide-to].active {
    width: 9px;
    height: 9px;
  }
}

/* Ensure visibility on white and light backgrounds */

@media (prefers-contrast: more) {
  .hero-carousel-indicators [data-bs-slide-to] {
    background-color: rgba(0, 74, 141, 0.5);
  }
}

@media (prefers-contrast: more) {
  .hero-carousel-indicators [data-bs-slide-to].active {
    box-shadow: 0 2px 8px rgba(0, 74, 141, 0.4), inset 0 0 0 2px #ffffff;
  }
}

/* Reduced motion preferences */

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-indicators [data-bs-slide-to] {
    transition: background-color 0.15s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-indicators [data-bs-slide-to]:hover, .hero-carousel-indicators [data-bs-slide-to].active:hover {
    transform: none;
  }
}

@media (min-width: 300px) {
  .hero-category-name {
    text-align: center;
  }
}

@media (max-width: 300px) {
  .hero-category-name {
    text-align: center;
  }
}

@media (max-width: 300px) {
  .hero-category-name {
    text-align: center;
  }
}

@media (min-width: 576px) {
  .hero-category-name {
    text-align: left;
  }
}

.info-button {
  background: transparent;
  color: var(--search-primary);
  border: 1px solid var(--search-primary);
  border-radius: 8px;
  transition: all 0.25s ease;
}

.info-button:hover {
  background: var(--search-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.25);
}

@media (min-width: 992px) {
  .carousel-overlay {
    height: 600px;
  }
}

.carousel-wrapper {
}

lottie-player {
  overflow: visible !important;
}

.footer-dark li {
  margin-bottom: 8px;
  line-height: 1.4;
}

.carousel-dark .carousel-indicators [data-bs-target], .carousel-indicators [data-bs-target] {
  background-color: var(--search-primary);
}

#carousel-2 {
}

.carousel-indicators {
  opacity: 1;
  bottom: -40px;
}

[data-bs-theme=dark] .carousel-dark .carousel-indicators [data-bs-target], [data-bs-theme=dark] .carousel .carousel-indicators [data-bs-target], .carousel-dark .carousel-indicators [data-bs-target], .carousel .carousel-indicators [data-bs-target] {
  background-color: var(--bs-light-bg-subtle);
  opacity: 1;
}

[data-bs-theme=dark] .carousel-dark [data-bs-target].active, [data-bs-theme=dark] .carousel [data-bs-target].active, .carousel-dark [data-bs-target].active, .carousel [data-bs-target].active {
  background-color: var(--search-accent);
}

.carousel-indicators [data-bs-target] {
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.mobile-floating-buttons {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2000;
}

@media (max-width: 768px) {
  #backToTop {
    position: fixed;
    bottom: 28px;
    right: 92px;
    width: 55px;
    height: 55px;
    z-index: 10040;
  }
}

#floatingSearchButton.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

#floatingSearchButton:hover {
  background: #ff8c1a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: scale(1.05);
}

#floatingSearchButton svg {
  width: 22px;
  height: 22px;
}

#floatingSearchButton {
  position: fixed;
  right: 28px;
  bottom: 169px;
  width: 55px;
  height: 55px;
  background: #ff7f00;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
  font-size: 22px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  padding: 0;
  margin: 0;
}

#floatingSearchButton.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

#floatingSearchButton:hover {
  background: #ff8c1a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: scale(1.05);
}

#floatingSearchButton svg {
  width: 25px;
  height: 25px;
}

/* ===== FINAL MOBILE FLOATING BUTTON OVERRIDES ===== */

@media (max-width:768px) {
  #floatingSearchButton {
    position: fixed !important;
    right: 140px !important;
    left: auto !important;
    top: auto !important;
    bottom: 20px !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 10042 !important;
  }
}

@media (max-width:768px) {
  #backToTop {
    position: fixed !important;
    right: 76px !important;
    left: auto !important;
    bottom: 20px !important;
  }
}

@media (max-width:768px) {
  .dgt-launcher-wrap, .floating-chat, #chatButton {
    position: fixed !important;
    right: 12px !important;
    left: auto !important;
    bottom: 20px !important;
  }
}

.dropdown-menu img {
  width: 50px !important;
  height: 50px !important;
  max-width: none !important;
}

#global-nav a:hover {
  color: #f58220 !important;
}

#global-nav a:hover svg {
  color: #f58220 !important;
}

/* Social media icons */

a[href*="facebook"] svg, a[href*="linkedin"] svg, a[href*="instagram"] svg {
  transition: color 0.2s ease, fill 0.2s ease;
}

a[href*="facebook"]:hover svg, a[href*="linkedin"]:hover svg, a[href*="instagram"]:hover svg {
  color: #f58220 !important;
  fill: #f58220 !important;
}

#black-nav {
  position: sticky !important;
  top: 0px;
  z-index: 999 !important;
}

#mobile-sticky-category-stripe {
  position: sticky;
  top: 0px;
  z-index: 998;
  background: white;
  border-bottom: 1px solid var(--brand-border);
}

@media (min-width: 768px) {
  #mobile-sticky-category-stripe {
    position: sticky;
    top: 30px;
    z-index: 998;
    background: white;
    border-bottom: 1px solid var(--brand-border);
  }
}

.sticky-category-header {
  border-width: 0px;
  background: var(--brand-white);
  margin-top: 0px;
}

/* --------------------------------------------------------------------
   MEGA-MENU FIX (MD only)
   - Make Products mega-menu span full navbar/viewport width at MD
   - Keep all three columns visible and distribute evenly
   - Reduce horizontal gaps/padding slightly to avoid overflow
   - Restrict all changes to the exact MD media query requested
   -------------------------------------------------------------------- */

/* Remove the dropdown's anchoring to the Products list item so
     the dropdown positions relative to the nearest positioned ancestor
     (the sticky navbar/container). */

@media (min-width: 768px) and (max-width: 991.98px) {
  .mega-menu-wrapper {
    position: static !important;
  }
}

/* Force the dropdown to span the full width of the navbar/container */

@media (min-width: 768px) and (max-width: 991.98px) {
  .mega-menu-wrapper .dropdown-menu {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0.25rem;
    overflow: hidden;
    box-sizing: border-box;
  }
}

/* Slightly reduce the internal horizontal gap so three columns fit nicely */

@media (min-width: 768px) and (max-width: 991.98px) {
  .mega-menu-wrapper .dropdown-menu > .d-flex {
    gap: 0.75rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Ensure each column shares available space equally and doesn't force overflow */

@media (min-width: 768px) and (max-width: 991.98px) {
  .mega-menu-wrapper .dropdown-menu > .d-flex > div {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Reduce list item horizontal padding and icon spacing just at MD */

@media (min-width: 768px) and (max-width: 991.98px) {
  .mega-menu-wrapper .dropdown-menu ul.list-unstyled {
    margin: 0;
    padding: 0;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .mega-menu-wrapper .dropdown-menu ul.list-unstyled li {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .mega-menu-wrapper .dropdown-menu ul.list-unstyled li a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    color: inherit;
  }
}

/* Make icons slightly smaller at MD to help with horizontal fit while preserving them */

@media (min-width: 768px) and (max-width: 991.98px) {
  .mega-menu-wrapper .dropdown-menu ul.list-unstyled li img {
    width: 22px;
    height: auto;
    flex: 0 0 auto;
  }
}

/* Keep the 'View Full Portfolio' centered under all columns */

@media (min-width: 768px) and (max-width: 991.98px) {
  .mega-menu-wrapper .dropdown-menu .text-center.mt-3 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

/* Safety: ensure no horizontal page overflow caused by the dropdown at MD */

@media (min-width: 768px) and (max-width: 991.98px) {
  body {
    overflow-x: hidden;
  }
}

