/* --- Basic Navbar Structure --- */
.advanced-navbar {
  padding-top: 32px;
  transition: padding-top 0.3s ease-in-out;
}

@media (max-width: 900px) {
  .advanced-navbar {
    display: none;
  }
}

.advanced-navbar__container {
  position: relative;
  display: flex;
  align-items: center;
/*   justify-content: space-between; */
  padding: 12px 3rem;
  max-width: 1350px;
  border-radius: 9999px;
  background: #FFFFFFB2;
  margin-left: auto;
  margin-right: auto;
/*   margin-top: 32px; */
  --tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  color: #757575;
}

.advanced-navbar__logo a img {
  display: block;
  width: 144px;
  min-width: 80px;
  height: auto;
  margin: auto auto;
}

.advanced-navbar__logo a {
  width: 144px;
  min-width: 80px;
  height: auto;
  margin: auto auto;
  display: block;
  text-decoration: none;
  padding-right: 16px;
}

.advanced-navbar__links {
  display: flex;
  list-style: none;
  margin: 0;
  gap: 2rem;
  padding: 0 16px;
}

.advanced-navbar__links a {
  text-decoration: none;
  font-weight: 400;
  font-size: 13.42px;
  line-height: 17.25px;
  letter-spacing: 0.675px;
  vertical-align: middle;
  text-transform: uppercase;
  color: #002A21;
}

.advanced-navbar__links a:hover {
  color: #000000;
}

.advanced-navbar__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.advanced-navbar__actions a {
  text-decoration: none;
  color: #757575;
}

.advanced-navbar__actions a:hover {
  color: #000000;
}

.advanced-navbar__separator {
  color: #ccc;
}

.advanced-navbar__button {
  padding: 12.8px 41.6px;
  background: #708DFF;
  border-radius: 23px;
  color: #FFFFFF !important;
  font-size: 14px !important;
  text-transform: uppercase;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.advanced-navbar__button:hover {
  transform: scale(1.1);
}

/* --- Dropdown Functionality --- */
.advanced-navbar__item {
/*   position: relative; */
}

.advanced-navbar__dropdown {
  display: none;
  position: absolute;
  top: calc(100%); /* Position it below the navbar, with a 10px gap */
  left: 20px;
  max-width: 1300px;
  width: 1300px;
  background-color: rgba(249, 250, 251, 1);
  border-radius: 8px;
  z-index: 1000;
  padding: 24px 53px;
}

.advanced-navbar__item.is-active .advanced-navbar__dropdown {
  display: block;
}

/* --- Grid Dropdown Styling (Type 1) --- */
.dropdown__grid-container {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
}
.grid-item { 
  color: inherit;
  text-decoration: none;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 250px;
  padding: 16px;
  border-radius: .5rem;
}

.grid-item:hover {
  background: rgba(236,253,245,.8);
  --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow:
    var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000),
    var(--tw-shadow);
}

.grid-item-title {
  color: rgba(17, 24, 39, 1);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.25em;
}

.grid-item-description {
  margin-top: .5rem;
  font-size: 14px;
  font-weight: 200;
  line-height: 18.2px;
  color: rgb(113 113 122 / 1);
  text-transform: none;
}

/* --- Categorized Dropdown Styling (Type 2) --- */
.dropdown__categorized-container {
  display: flex;
  min-width: 600px;
  align-items: flex-start;
}

.categorized__sidebar {
  padding-right: 1rem;
}
.categorized__sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; /* or grid */
  flex-direction: column; /* stack vertically */
  gap: 1rem; }

.category-link {
  padding: 20px;
  cursor: pointer;
  border-radius: .5em;
  color: #000000;
  
  display: flex;
  align-items: center;
  max-width: 250px;
  min-width: 200px;
}
.category-link.is-active {
  background-color: rgb(236, 253, 245);
  --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow:
    var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000),
    var(--tw-shadow);
}

.category-link-icon {
  margin-right: 12px;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.category-link-chevron {
  margin-left: auto;
}

.category-link-title {
  color: rgba(17, 24, 39, 1);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.25em;
  margin-right: 4px;
}

.categorized__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: white;
  padding: 16px;
  width: 100%;
}

.categorized-item {
  display: none;
  
  border-radius: .5rem;
  padding: 20px;
  max-width: 250px;
}

.categorized-item.is-visible {
  display: flex;
}

.categorized-item:hover {
  background: rgba(236,253,245,.8);
  --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow:
    var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000),
    var(--tw-shadow);
}

.categorized-item img {
  margin-right: 12px;
  width: 24px;
  height: 24px;
}

.categorized-item-info {
  height: min-content;
  flex-grow: 1;
}

.categorized-item-title {
  color: rgb(17, 24, 39);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.25em;
}

.categorized-item-description {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 200;
  line-height: 18.2px;
  color: rgb(113, 113, 122);
  text-transform: none;
}

/* --- NEW FLOATING MENU STYLES --- */
.navbar-floating-menu {
  position: relative; /* This is the anchor for the dropdown menu */
  margin-left: 24px; /* Creates space between it and the other action items */
}

.floating-menu__trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-menu__trigger img {
  border-radius: 50%; /* Makes the placeholder icon circular for a cleaner look */
}

.floating-menu__dropdown {
  display: none; /* The menu is hidden by default */
  position: absolute;
  top: calc(100% + 15px); /* Aligns the menu to the bottom of the navbar plus a 15px gap */
  right: 0; /* Aligns the menu to the right edge of its container */
  background-color: #ffffff;
  border-radius: 8px;
  min-width: 160px;
  z-index: 1001; /* Ensures it appears above other navbar elements */
  padding: 8px 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* This class will be toggled by JavaScript to show the menu */
.navbar-floating-menu.is-open .floating-menu__dropdown {
  display: block;
}

.floating-menu__item {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap; /* Prevents text from wrapping to a new line */
  text-align: center;
}

.floating-menu__item:hover {
  background-color: #f9fafb;
}


