/* 🌐 Sub Header Styles */
.sub-header {
  background: #f9f9f9;
  border-top: 2px solid #004aad;
  border-bottom: 2px solid #004aad;
  padding: 12px 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  z-index: 99;
  overflow-x: auto; /* Allow horizontal scrolling if needed */
  -webkit-overflow-scrolling: touch;
}

/* Keep nav horizontal even on mobile */
.sub-header-nav {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping to new lines */
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  min-width: max-content; /* Keep width fitting its content */
  font-family: "Segoe UI", Roboto, sans-serif;
}

.sub-header-nav a {
  text-decoration: none;
  color: #004aad;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap; /* Prevent text from breaking */
}

.sub-header-nav a:hover {
  background: #004aad;
  color: white;
  transform: scale(1.05);
}

/* Make it scrollable horizontally on small screens */
@media (max-width: 768px) {
  .sub-header {
    padding: 8px 0;
  }

  .sub-header-nav {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar on Firefox */
  }

  .sub-header-nav::-webkit-scrollbar {
    display: none; /* Hide scrollbar on Chrome/Safari */
  }
}

