/* Header, sidebar, hamburger, and dropdown navigation. */

.sidebar {
  background-color: #FCFCFC;
  position: sticky;
}

nav {
  background-color: var(--color-navy);
}

.nav-link:hover {
  color: var(--color-secondary);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.social-link:hover {
  color: var(--color-secondary) !important;
}

.dropdown-humbarger-item[href^="http"] {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.instagram-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex: 0 0 28px;
  object-fit: cover;
}

.instagram-menu-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-basis: 24px;
}

.social-link:hover .instagram-icon,
.dropdown-humbarger-item:hover .instagram-icon {
  opacity: 0.86;
}

.logo-img {
  width: 210px;
  height: 50px;
}

.nav-icon {
  font-size: 32px;
}

.header-ads-link {
  min-width: 48px;
}

.header-ads-link .h10 {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .logo-img {
    width: 130px;
    height: 33px;
  }

  .nav-icon {
    font-size: 27px;
  }
}

@media (max-width: 420px) {
  .logo-img {
    width: 120px;
    height: 30px;
  }
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(245, 245, 245, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.offcanvas.offcanvas-end {
  width: min(85vw, 500px);
  max-width: calc(100vw - 16px);
  overflow-x: hidden;
}

.offcanvas-body {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 96px);
  padding-right: 1rem;
  -webkit-overflow-scrolling: touch;
}

.dropdown-menu {
  position: absolute !important;
  border-radius: 0;
  padding: 8px 0;
  border: 1px solid rgba(0, 0, 0, .100);
  background: #FFFFFF;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .18);
  z-index: 3000;
}

.dropdown-item {
  padding: 8px 10px;
  color: var(--color-text) !important;
  background: transparent;
  border-radius: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(248, 245, 245, .55);
  color: var(--color-text) !important;
}

.dropdown-item.active,
.dropdown-item:active {
  background: #FFFFFF !important;
  color: #F1F9F9 !important;
}

.dropdown-toggle {
  border: none !important;
  box-shadow: none !important;
}

.dropdown-toggle:focus,
.dropdown-toggle:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.dropdown-humbarger-menu {
  border: none !important;
  box-shadow: none !important;
  display: none;
  background: transparent !important;
  padding: 0 !important;
}

.dropdown-humbarger-item {
  border-bottom: 1px solid #e0e0e0;
  padding-top: 15px;
  padding-bottom: 0;
}

.dropdown-humbarger-item:first-child {
  border-top: none;
}

.dropdown-humbarger-menu .dropdown-humbarger-item:hover {
  background-color: transparent !important;
}

.dropdown-submenu .dropdown-menu {
  display: none;
  position: static !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.dropdown-submenu.open .dropdown-menu {
  display: block;
}

.dropdown-submenu > a::before {
  content: '\25BC';
  margin-right: 8px;
  font-size: 0.5em;
  transform: scaleX(1.5);
  display: inline-block;
  vertical-align: middle;
}

#navbarDropdownLang::after,
#navbarDropdownGuestUser::after {
  display: none !important;
}

.nav-tab-content .nav-link.active {
  background-color: #F1F1F1;
  color: #535353;
  border-color: #E5E5E5;
}

.nav-tab-content .nav-link {
  background-color: #FCFCFC;
  border-color: #E9E9E9;
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
  font-size: 0.9rem;
  line-height: 1.2;
}

.nav-tab-content .nav-link:hover {
  filter: brightness(85%);
  color: #05C1A2;
}

.nav-username-label {
  max-width: 50px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#page_top {
  width: 50px;
  height: 50px;
  bottom: 30px;
  background: #CCCCCC;
  opacity: 0.4;
  border-radius: 50%;
  position: fixed;
}

@media (min-width: 768px) {
  #page_top {
    right: calc(100% + 10px - 9 * 8.33333%);
  }
}

@media (max-width: 767px) {
  #page_top {
    right: 20px;
  }
}

#page_top a {
  display: block;
  width: 50px;
  height: 50px;
  text-decoration: none;
}

#page_top a::before {
  content: '';
  width: 25px;
  height: 15px;
  background-color: #f9f9f9;
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  border-radius: 5px;
}
