.dns-navigation {
  color: #000000;
  background-color: #ffffff;
  border-bottom: solid 1px #c5c1be;
  z-index: 2;
  position: relative;

  .nav-container {
    height: 108px;
    padding: 0 64px;
    display: flex;
    justify-content: space-between;
  }
  .logo {
    height: 100%;
    width: 100%;
  }
  ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
  .menu {
    display: flex;
    align-items: center;
    gap: 48px;
  }
  .menu-item {
    white-space: nowrap;
    font-family: "Archivo", sans-serif;
    font-weight: bold;
    font-size: 18px;
    line-height: 24px;
    position: relative;
    .nav-item {
      display: flex;
      gap: 4px;
      padding: 0;
      background: white;
      color: #000000;
      font-family: "Archivo", sans-serif;
      font-weight: bold;
      line-height: 24px;
      &:active {
        color: #584f4a;
      }
    }
    a {
      color: #000000;
    }
  }

  .expandable svg {
    align-self: center;
  }

  .expandable.active svg {
    transform: scaleY(-1);
  }

  .nav-item:hover + .rectangle {
    opacity: 1;
  }
  .nav-item.active:hover + .rectangle {
    opacity: 0;
  }
  .rectangle {
    height: 3px;
    margin-top: 4px;
    background: linear-gradient(180deg, #3fb9ff, #0066ff);
    opacity: 0;
    border-radius: 8px;
    transition: opacity 0.3s ease;
  }

  .popup {
    display: none;
    position: absolute;
    top: 122%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 8px;
    z-index: 10;
    background-color: #ffffff;
    filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.16));
  }

  .triangle {
    position: absolute;
    top: -11px;
    left: 50%;
    height: 12px;
    width: 28px;
    margin-left: -14px;
    aspect-ratio: 2;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    background: #ffffff;
    z-index: 11;
  }

  .panel-container {
    display: flex;
    border-radius: 8px;
    min-width: 832px;
    height: 432px;
    background-color: #ffffff;
    position: absolute;
    left: -776px;
  }

  .panel-list {
    background-color: #000000;
    width: 183px;
    height: 100%;
    border-radius: 8px 0px 0px 8px;

    button {
      padding: 0;
      background-color: #000000;
      color: #ffffff;
      font-size: 18px;
      line-height: 32px;
      font-weight: bold;
    }

    ul {
      display: flex;
      flex-direction: column;
      gap: 22px;
      padding-left: 24px;
      padding-top: 26px;
    }
    a {
      color: #ffffff;
    }
  }

  .panel-content {
    flex: 1;
    padding: 16px 32px 40px;
  }

  .panel-item {
    cursor: pointer;
    color: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    button {
      font-family: "Roboto";
    }

    svg {
      display: none;
    }

    &.active button {
      color: #64a2ff;
    }
    &.active .arrow svg {
      display: inline-block;
      color: #64a2ff;
    }
    &.active:hover {
      gap: 8px;
    }

    &:hover {
      gap: 2px;
    }

    .caret {
      display: flex;
    }

    &:hover .caret svg {
      display: inline-block;
      color: #fff;
      transform: rotate(270deg);
    }

    &.active:hover .caret svg {
      display: none;
    }
  }

  .panel-title {
    font-family: "Archivo Black", sans-serif;
    color: #584f4a;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    padding-bottom: 11.5px;
    width: 100%;
    border-bottom: 1px solid #d9d9d3;
  }

  .panel-details {
    display: none;
    height: 100%;
    justify-content: flex-start;
    flex-direction: column;
  }

  .panel-links {
    display: flex;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid #d9d9d3;
  }

  .links-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 282px;
    white-space: break-spaces;

    a {
      color: #222222;
      font-size: 18px;
      font-family: "Roboto";
      font-weight: 400;
      line-height: 32px;

      &:hover {
        text-decoration: underline;
      }
      &:active {
        color: #584f4a;
        text-decoration: underline;
      }
    }
  }

  .panel-view-all {
    padding-top: 24px;
    margin-top: auto;

    a {
      font-size: 16px;
      color: #0044ab;
      line-height: 24px;
      text-decoration: underline;
      &:hover {
        color: #00086f;
      }
      &:active {
        color: #00086f;
        text-decoration: none;
      }
    }
  }

  .search-item {
    display: flex;
    position: relative;
  }

  .search-toggle {
    padding: 0;
    background-color: #ffffff;
    border: none;
    cursor: pointer;
    color: #0066ff;

    &:hover {
      color: #64a2ff;
    }
    &:active {
      color: #0044ab;
    }
  }

  .search-input-container {
    border-radius: 32px;
    border: solid 1px #b3b3a8;
    box-sizing: border-box;
    background-color: #f7f7f1;
    width: 504px;
    overflow: hidden;
    box-sizing: border-box;
    transition: width 0.5s ease, visibility 0s linear 0.5s;
    width: 0;
    visibility: hidden;
    height: 48px;
    position: absolute;
    right: 0px;
    top: -6px;
    form {
      display: flex;
      flex-direction: row;
      gap: 6px;
    }
  }

  .search {
    border: none;
    outline: none;
    width: 504px;
    font-size: 18px;
    line-height: 32px;
    padding: 8px 88px 8px 16px;
    flex-grow: 2;
    background-color: #f7f7f1;

    &:focus {
      background-color: #f7f7f1;
      color: #222222;
    }

    &::placeholder {
      color: #766d68;
    }
  }

  .search-item.active .search-input-container {
    width: 504px;
    transition: width 0.5s ease;
    display: block;
    padding-right: 16px;
    top: -24px;
    visibility: visible;
  }

  .search-button,
  .close-button {
    cursor: pointer;
    display: none;
    padding: 0;
    background: none;
    align-items: center;
    &:hover {
      color: #64a2ff;
    }
    &:active {
      color: #0044ab;
    }
  }

  .search-button {
    color: #0066ff;
  }

  .close-button {
    color: #000000;
  }

  .search-item.active .close-button,
  .search-item.active .search-button {
    display: flex;
  }

  @media (max-width: 1272px) {
    .panel-container {
      left: 50%;
      transform: translateX(-50%);
    }
  }
  .mobile-nav {
    display: none;
  }

  @media (max-width: 992px) {
    &.mobile-open {
      height: 100%;
      display: flex;
      position: fixed;
      width: 100%;
      overflow: auto;
    }

    .nav-container {
      display: none;
    }
    .mobile-nav {
      display: block;
      background-color: #ffffff;
      position: relative;
      height: 100%;
      text-align: left;
      width: 100%;

      .mobile-nav-top {
        height: 64px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
      }

      .mobile-logo {
        display: flex;
        align-items: center;
      }

      .mobile-logo a {
        line-height: 0;
      }

      .mobile-logo img {
        height: 48px;
        width: auto;
      }

      .nav-toggle {
        line-height: 0px;
        padding: 0 16px;
        cursor: pointer;
        background: none;
        border: none;
        color: #000000;
      }

      .mobile-menu-items {
        display: none;
      }

      .close-icon {
        display: none;
      }

      .mobile-search {
        display: none;
      }

      &.open {
        .mobile-logo img {
          padding-left: 16px;
        }
        .mobile-menu-items {
          display: block;
          list-style-type: none;
          margin: 0;
          padding: 0;
          border-top: solid 1px #676656;
        }

        .mobile-menu-item {
          padding-left: 24px;
          border-bottom: solid 1px #676656;
          display: flex;
          justify-content: space-between;
          align-items: center;
          &:active {
            background-color: #f7f7f1;
          }

          &:last-child {
            border-bottom: none;
          }
        }

        .mobile-menu-item button {
          padding: 0;
          background-color: transparent;
          color: #000000;
          display: flex;
          justify-content: space-between;
          align-items: center;
          flex: 1;
          svg {
            margin-right: 24px;
          }
        }

        .mobile-nav-item {
          color: #000000;
          font-size: 18px;
          font-family: "Archivo", sans-serif;
          font-weight: bold;
          line-height: 24px;
          height: 64px;
          &:active {
            color: #584f4a;
          }
        }

        .mobile-menu-item a {
          flex: 1;
          display: flex;
          align-items: center;
        }

        .nav-toggle {
          padding: 0 24px;
        }
        .close-icon {
          display: block;
          &:active {
            color: #0044ab;
          }
        }
        .hamburger {
          display: none;
        }
        .mobile-search {
          display: block;
        }
      }

      .back-button {
        background: none;
        border: none;
        font-size: 16px;
        cursor: pointer;
        width: 100%;
        display: flex;
        align-items: center;
        height: 64px;
        border-bottom: solid 1px #676656;
        color: #222222;
        font-family: "Red Hat Display";
        font-weight: bold;
        &:active {
          background-color: #f7f7f1;
          color: #584f4a;
        }
      }

      .submenu {
        display: none;
      }

      details > summary {
        list-style: none;
      }

      details > summary::marker,
      details > summary::-webkit-details-marker {
        display: none;
      }

      .mobile-panel-container {
        margin: 0 24px;
        font-family: "Roboto";

        summary {
          display: flex;
          gap: 4px;
          padding: 16px 0;
          font-family: "Archivo", sans-serif;
          font-weight: bold;
          font-size: 18px;
          line-height: 24px;

          svg {
            align-self: center;
          }
        }

        details {
          border-bottom: 1px solid #d9d9d3;
        }

        details:last-child {
          border-bottom: none;
        }

        details[open] summary svg {
          transform: rotate(180deg);
        }
      }

      .mobile-links-column {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 12px 0 28px 16px;
        a {
          color: #222222;
          font-size: 18px;
          line-height: 32px;
          &:active {
            color: #00086f;
            text-decoration: underline;
          }
        }
      }

      .mobile-view-all {
        padding: 0 0 16px 16px;
        a {
          color: #0044ab;
          font-weight: 600;
          font-size: 16px;
          text-decoration: underline;

          &:active {
            text-decoration: none;
            color: #00086f;
          }
        }
      }

      .mobile-search {
        padding: 6px 24px 16px 24px;
        form {
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          background-color: #f7f7f1;
          border-radius: 32px;
          border: solid 1px #b3b3a8;
          padding: 8px 16px;
        }

        input {
          font-family: "Roboto";
          font-size: 18px;
          background-color: transparent;
          outline: none;
          border: none;
          border-radius: 32px;
          padding: 0;
          color: #222222;
          flex: 1;

          &:focus {
            background-color: #f7f7f1;
            color: #222222;
          }

          &::placeholder {
            color: #766d68;
          }
        }

        .mobile-search-button {
          line-height: 0;
          background-color: transparent;
          padding: 0;
          color: #0066ff;
          &:active {
            color: #0044ab;
          }
        }
      }
    }
  }
}

.dns-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 1;
}

.dns-nav-overlay.active {
  display: block;
  @media (max-width: 992px) {
    display: none;
  }
}

.no-scroll {
  @media (max-width: 992px) {
    overflow: hidden;
  }
}
