/* Hard-coded responsive spacing values that work */

/* GPS Submenu Styles */
.gps_submenu {
  width: 100%;
  padding: 0.75rem 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: var(--color-bg-light, #f9fafb);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gps_submenu .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Desktop margin for main content - high specificity */
body main#main-content,
body main,
main#main-content {
  padding-top: 0px !important; /* Reset padding to zero */
  margin-top: calc(220px - 1em) !important; /* Page-header height minus 1em */
}

.gps_submenu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gps_submenu li {
  margin: 0;
  padding: 0;
}

.gps_submenu a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--color-text);
  border-radius: var(--border-radius-md);
  transition: all 0.3s ease;
}

.gps_submenu a:hover {
  color: var(--color-primary);
  background-color: var(--color-bg-light);
}

.gps_submenu a.active {
  color: var(--color-primary);
  font-weight: bold;
}

/* Banner flex column for smaller screens */
@media (max-width: 1100px) {
  .sale-card {
    display: flex !important;
    flex-direction: column !important;
  }

  .promo-red,
  .promo-white-main,
  .promo-black-features {
    width: 100% !important;
    flex: none !important;
  }
}

/* Header flex column for smaller screens */
@media (max-width: 1085px) {
  header {
    flex-direction: column !important;
    height: auto !important;
    padding: 10px !important;
  }

  .logo,
  #BANNER,
  .phone {
    margin: 5px 0 !important;
    flex: none !important;
  }

  #BANNER {
    margin: 10px 0 !important;
  }

  /* Adjust main margin for column header layout */
  body main#main-content,
  body main,
  main#main-content {
    margin-top: calc(324px - 1em) !important; /* Measured column header height minus 1em */
  }
}



/* Small screens */
@media (max-width: 745px) {
  .gps_submenu {
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.5rem 0;
  }

  .gps_submenu ul {
    justify-content: flex-start;
    padding: 0 0.5rem;
  }

  .gps_submenu a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  /* Small screen margin override - high specificity */
  body main#main-content,
  body main,
  main#main-content {
    margin-top: calc(265px - 1em) !important; /* Small screens: measured page-header height (265px) minus 1em */
  }

  /* Center company logo on small screens */
  .logo {
    align-self: center !important;
    justify-self: center !important;
    display: flex !important;
    justify-content: center !important;
  }

  .hero-section {
    margin-top: 0 !important; /* Breadcrumb now in normal flow, no extra margin needed */
    padding-top: 0 !important;
  }

  .last-updated-container {
    margin-top: 0 !important;
  }
}

/* Medium-small screens */
@media (max-width: 640px) {
  /* Medium-small screen margin override - high specificity */
  body main#main-content,
  body main,
  main#main-content {
    margin-top: calc(267px - 1.5em) !important; /* Medium-small screens: measured page-header height (267px) minus 1.5em */
  }
}

@media (max-width: 480px) {
  .gps_submenu a {
    padding: 0.5rem 0.5rem;
    font-size: 0.85rem;
  }

  /* Small mobile margin override - high specificity */
  body main#main-content,
  body main,
  main#main-content {
    margin-top: calc(115px - 1em) !important; /* Small mobile: page-header height minus 1em */
  }

  .hero-section {
    margin-top: 0 !important; /* Breadcrumb now in normal flow, no extra margin needed */
  }
}

/* Related Solutions Section - Black Font Color */
#related-solutions,
#related-solutions * {
  color: black !important;
}