/* Mega menu */
.tbm {
  background-color: transparent;
  position: static;
}

.tbm .tbm-item.level-1 {
  border-right: 0;
  border-top: 0;
}

.tbm-link.level-1 {
  color: var(--bs-navbar-link-color);
}

.tbm-item.level-1.active .tbm-link.level-1 {
  color: var(--bs-navbar-active-link-color);
}

.tbm-link.level-1:hover,
.tbm-link.level-1:focus {
  color: var(--bs-navbar-hover-link-color);
  background-color: transparent;
}

.tbm .tbm-link.level-1 {
  padding-top: var(--bs-nav-link-padding-y);
  padding-bottom: var(--bs-nav-link-padding-y);
  border-left: 0;
  text-align: left;
}

.tbm .tbm-link.level-1:hover,
.tbm .tbm-link.level-1:focus {
  background-color: transparent;
}

.tbm-item--has-dropdown {
  position: static;
}

.tbm-submenu {
  width: 100%;
  border: 0 !important;
  background-color: var(--bs-navbar-bg);
  box-shadow: none;
}


.tbm .tbm-submenu-toggle {
  border-left: 0;
}

.tbm .tbm-submenu-toggle:before {
  display: none;
}

.tbm .tbm-submenu-toggle {
  width: auto;
}

.tbm-item.level-1.open > .tbm-submenu {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
  position: static;
  transform: none;
  left: 0;
}

@media (min-width: 992px) {
  .tbm-item.level-1.open > .tbm-submenu {
    max-width: var(--bs-site-max-width);
    background-color: var(--bs-navbar-bg);
    position: absolute;
  }

  .tbm .tbm-item {
    border-top: 0;
  }
}

.tbm-item.level-1 .tbm-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tbm-item.level-1.open .tbm-column {
  flex: 1;
}

.tbm-item.level-1 .tbm-column .tbm-subnav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 8px 0;
}

.tbm-item.level-1 .tbm-column .tbm-subnav .tbm-item a {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--bs-btn-color);
  background-color: var(--bs-btn-bg);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.tbm-item.level-1 .tbm-column .tbm-subnav .tbm-item a:hover,
.tbm-item.level-1 .tbm-column .tbm-subnav .tbm-item a:focus {
  color: var(--bs-btn-hover-color);
  background-color: var(--bs-btn-hover-bg);
}

.tbm-item.level-1 .tbm-column .tbm-subnav .tbm-item a::after {
  content: '\f105';
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  width: 20px;
  height: 21px;
  display: inline-block;
}

.tbm-group-container {
  border-top: 0;
}

.tbm-nav .tbm-item.level-2 .nav-link {
  padding: 8px 16px;
}

.tbm-nav > .nav-item .tbm-group-container .nav-link {
  font-weight: 400;
  line-height: 170%;
  letter-spacing: 0.64px;
}

.tbm .tbm-main .tbm -nav > .nav-item > .nav-link:hover {
  text-decoration: underline;
}

.tbm .tbm-main .tbm -nav > .nav-item > .nav-link:hover,
.tbm .tbm-main .tbm -nav > .nav-item > .nav-link:active {
  border-bottom: 0 !important;
}

.tbm.tbm--mobile .tbm-nav {
  background-color: transparent;
  flex-direction: row;
}

.tbm.tbm--mobile .tbm-submenu {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
  .tbm .tbm-item.level-1 {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
  }

  .tbm-submenu {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
  }

  .tbm .tbm-nav {
    background-color: var(--bs-navbar-secondary-bg) !important;
    flex-direction: column !important;
  }

  .tbm-item.level-1.open > .tbm-submenu {
    flex-wrap: wrap;
    padding: 0 0 0.5rem;
  }

  .tbm-item.level-1.open .tbm-row {
    flex-direction: column;
    gap: 0;
  }

  .tbm.tbm--mobile .tbm-submenu-toggle {
    border-left: 0;
  }

  .tbm.tbm--mobile .tbm-subnav .tbm-subnav {
    margin-left: 0;
  }

  .tbm-item.level-1 .tbm-column .tbm-subnav {
    flex-wrap: wrap;
  }
}

.tbm-item--has-dropdown .tbm-submenu-toggle {
  width: auto;
}

.tbm-item--has-dropdown .tbm-submenu-toggle:before {
  display: none;
}

.tbm-item--has-dropdown.tbm-submenu-toggle:after {
  transform: translateY(-50%) translateX(-50%);
  content: '';
  display: block;
  border-left: 0.35rem solid transparent;
  border-right: 0.35rem solid transparent;
  border-top: 0.35rem solid currentColor;
  transition: transform 400ms ease-out;
  margin-left: 0.5rem;
  margin-top: 6px;
}

.tbm-item--has-dropdown.opem .tbm-submenu-toggle:after {
  transform: translateY(-50%) translateX(-50%) rotate(180deg)
}

.tbm.animate:not .tbm-item > .tbm-submenu {
  transition: all 400ms;
  backface-visibility: hidden;
  opacity: 0
}

.tbm.animate:not .tbm-item.animating > .tbm-submenu {
  display: block !important
}

.tbm.animate:not .tbm-item.open > .tbm-submenu {
  opacity: 1
}

.tbm.animate:not .tbm-item.animating.open>.tbm-submenu {
  opacity: 1
}

.tbm.animate:not.zoom .tbm-item > .tbm-submenu {
  transform: scale(0, 0);
  transform-origin: 20% 20%
}

.tbm.animate:not.zoom .tbm-item.open > .tbm-submenu {
  transform: scale(1, 1)
}

.tbm.animate:not.elastic .level0 > .tbm-item > .tbm-submenu {
  transform: scale(1, 0)
}

.tbm.animate:not.elastic .tbm-item > .tbm-submenu {
  transform: scale(0, 1);
  transform-origin: 10% 0
}

.tbm.animate:not.elastic .tbm-item.open > .tbm-submenu {
  transform: scale(1, 1)
}

.tbm.animate:not.slide .tbm-item.animating > .tbm-submenu {
  overflow: hidden
}

.tbm.animate:not.slide .tbm-item>.tbm-submenu > div {
  transition: all 400ms;
  backface-visibility: hidden;
  margin-top: -100%
}

.tbm.animate:not.slide .tbm-item .tbm-item > .tbm-submenu {
  min-width: 0
}

.tbm.animate:not.slide .tbm-item .tbm-item > .tbm-submenu > div {
  min-width: 200px;
  margin-top: 0;
  margin-left: -500px
}

.tbm.animate:not.slide .tbm-item .tbm-item.open > .tbm-submenu > div {
  margin-left: 0
}

.tbm.animate:not.slide .tbm-item.open>.tbm-submenu > div {
  margin-top: 0%
}

.tbm .tbm-block .view-html-list ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  margin-bottom: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.tbm .tbm-block .view-html-list ul li {
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

.tbm .tbm-block .view-html-list ul li .field-content a {
  width: 100%;
  min-height: 135px;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  text-align: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.tbm .tbm-block .view-html-list ul li .field-content a > div {
  width: 100%;
}

.tbm .tbm-block .view-html-list ul li .field-content a img {
  margin: 0 auto;
}

.tbm .tbm-block .view-html-list ul li a:before {
  display: none;
}

@media (max-width: 991px) {
  .tbm .tbm-block .view-html-list ul {
    border-left: 0;
    border-top: 0;
    border-bottom: 0;
    display: block;
  }

  .tbm .tbm-block .view-html-list ul li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-right: 0;
  }

  .tbm .tbm-block .view-html-list ul li .field-content a {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    flex-wrap: nowrap;
    height: 48px;
    min-height: auto;
    padding: 0 0.5rem;
  }

  .tbm .tbm-block .view-html-list ul li .field-content a>div {
    width: auto;
  }

  .tbm .tbm-block .view-html-list ul li .field-content a img {
    width: 45px;
  }
}
