/* --- Sticky bar container --- */
.sticky {
  position: sticky;
  top: 0;
  z-index: 75;
  background-color: #ffffff; /* bg-white */
  border-bottom: 1px solid #e5e7eb; /* border-gray-200 */
}

/* Hide on small screens (md:flex equivalent) */
@media (max-width: 767px) {
  .sticky {
    display: none;
  }
}

/* Show on medium+ screens */
@media (min-width: 768px) {
  .sticky {
    display: flex;
    width: 100%;
    justify-content: start;
  }
}

/* --- Nav container --- */
.sticky nav {
  display: flex;
  align-items: center;
  padding: 0.25rem 1rem; /* py-1 px-4 */
  max-width: 80rem; /* max-w-7xl */
  margin: 0 auto;
}

.sticky .mr-6 {
  margin-right: 1.5rem; /* mr-6 */
}

/* --- Left section --- */
.sticky .font-semibold {
  font-weight: 600;
  color: #1f2937; /* text-gray-800 */
}

.sticky .text-lg {
  font-size: 1.125rem;
  font-weight: 700;
  color: #dc2626; /* text-red-600 */
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sticky .text-lg:hover {
  color: #2563eb; /* hover:text-blue-600 */
  text-decoration: none;
}

/* --- Right side (link container) --- */
.sticky .flex {
  display: flex;
  align-items: center;
}

.sticky .space-x-4 > * + * {
  margin-left: 1rem; /* 16px spacing between links */
}

/* --- Link buttons --- */
.sticky a.px-3 {
  display: inline-block;
  padding: 0.25rem 0.75rem; /* py-1 px-3 */
  border-radius: 0.375rem; /* rounded-md */
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  color: #ffffff; /* Default text color for active link */
}

/* Base link colors (inactive) */
.sticky .bg-gray-400 {
  background-color: #9ca3af;
  color: #1f2937;
}

/* Active link (simulating bg-red-500 text-white) */
.sticky .bg-red-500 {
  background-color: #ef4444;
  color: #ffffff;
}

/* Hover effect */
.sticky a:hover {
  background-color: #16a34a; /* hover:bg-green-600 */
  color: #ffffff; /* hover:text-white */
}
