html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

/* Nested Dropdown Styles */
.dropend .dropdown-toggle::after {
  border-left: .3em solid;
  border-right: 0;
  border-top: .3em solid transparent;
  border-bottom: .3em solid transparent;
  margin-left: .5em;
  vertical-align: .255em;
}

.dropend .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: 0;
  margin-left: -0.125rem; /* Slight overlap to prevent gap */
}

/* Hover support for nested dropdowns - keep submenu visible */
.dropdown-menu .dropend:hover > .dropdown-menu {
  display: block;
}

/* Position the dropend container to have full hover area */
.dropdown-menu .dropend {
  position: relative;
}

/* Ensure dropdown arrow icon is visible */
.dropdown-item.dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Create a hover bridge to prevent submenu from disappearing */
.dropdown-menu .dropend::before {
  content: '';
  position: absolute;
  top: 0;
  right: -0.25rem;
  bottom: 0;
  width: 0.5rem;
  z-index: 1030;
}
