.front-page {
  .banner-wrapper {
    position: relative;
  }
}

.navbar {
  z-index: 100 !important;
  display: flex;
  justify-content: space-between;
  position: relative !important;
  z-index: 100;
  align-items: center;

  .navbar-nav {
    @media screen and (max-width: 991px) {
      padding-top: 20px;
    }
    a {
      font-family: Brown-Light-Regular;
      font-size: $font-size-medium !important;
      line-height: 22px;
      color: $white !important;
      padding: 20px !important;
      text-decoration: none;
      &.is-active {
        color: $Denim-Blue !important;
      }
      @media screen and (max-width: 1370px) {
        padding-inline: 14px !important;
      }
      @media screen and (max-width: 1270px) {
        font-size: $font-size-base !important;
        padding-inline: 7px !important;
      }
      @media screen and (max-width: 991px) {
        padding: 0px !important;
      }
    }
    .nav-item {
      list-style: none;
      // text-transform: uppercase;
    }
  }
}
.custom-footer-show {
  .region-footer-sixth {
    .menu--custom-footer {
      ul.clearfix {
        @media screen and (max-width: 991px) {
          display: flex;
          flex-direction: column;
          margin-top: 20px;
        }
        li.nav-item {
          @media screen and (max-width: 991px) {
            border-bottom: 0.5px solid #7b7e86;
          }
          a.nav-link {
            font-family: "Brown-Light-Regular";
            font-size: $font-size-medium !important;
            line-height: 1.375rem;
            color: #ffffff !important;
            padding: 20px !important;
            text-decoration: none;
            @media screen and (max-width: 1200px) {
              padding-inline: 10px !important;
            }
            @media screen and (max-width: 991px) {
              font-size: $font-size-xmedium !important;
              padding-block: 14px !important;
            }
          }
        }
      }
    }
  }
}

#CollapsingNavbar {
  justify-content: space-evenly !important;
}

.trial-button {
  height: 50px;
  min-width: 144px;
  background-color: $Denim-Blue;
  border: none;
  outline: none;
  font-size: $font-size-base;
  color: $white;
  font-family: Brown-Light-Regular;
  &:hover {
    background-color: $hover-btn;
  }
  @media screen and (max-width: 991px) {
    min-width: unset;
    width: 100%;
  }
}

.banner-description {
  p {
    position: relative;
    font-family: "Brown-Regular";
    font-size: $font-size-medium;
    text-align: center;
    line-height: 1.2;
    color: $white;
    max-width: 683px;
    padding-inline: 10px;
    @media screen and (max-width: 768px) {
      backdrop-filter: blur(5px);
    }
  }
}
html[lang="ar"] {
  .banner-description {
    p {
      font-family: "Bukra-Light";
      line-height: 1.5;
    }
  }
  .discover-more-button {
    a {
      font-family: "Bukra-Light";
    }
  }
  .navbar {
    .navbar-nav {
      a {
        font-family: "Bukra-Light";
      }
    }
  }
  .trial-button {
    font-family: "Bukra-Light";
  }
  .language-dropdown {
    right: -15px !important;
  }
  .navbar {
    .navbar-nav {
      @media screen and (max-width: 991px) {
        padding-right: 0 !important;
      }
    }
  }
  a.navbar-brand {
    margin-right: 0 !important;
  }
  .custom-footer-show {
    .region-footer-sixth {
      .menu--custom-footer {
        ul.clearfix {
          padding-right: 14px;
          li.nav-item {
            a.nav-link {
              font-family: "Bukra-Regular";
            }
          }
        }
      }
    }
  }
}
.discover-more-button {
  position: relative;
  width: fit-content;
  // margin: auto;
  margin-top: 100px;

  button {
    height: 50px;
    min-width: 143px;
    border: none;
    outline: none;
    background-color: $Denim-Blue;
    &:hover {
      background-color: $hover-btn;
    }
  }
  a {
    font-family: "Brown-Light-Regular";
    color: $white !important;
    font-size: $font-size-base !important;
    line-height: 22.07px;
  }
}

.hero-image {
  background-size: cover;
  background-position: center;
  align-items: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 196px;
  padding-top: 244px;
  @media screen and (max-width: 768px) {
    padding-bottom: 100px;
    padding-top: 100px;
  }
}

.banner-title h1 {
  font-family: "Brown-Light-Regular";
  position: relative;
  text-align: center;
  font-size: $font-size-xxlarge;
  color: $white;
  max-width: 880px;
  // margin: auto;
  line-height: 88.28px;
  margin-bottom: 20px;
  padding-inline: 10px;
  @media screen and (max-width: 768px) {
    font-size: $font-size-heading !important;
  }
}
html[lang="ar"] .banner-title h1 {
  font-family: "Bukra-Regular";
}

#header {
  position: fixed;
  top: 64px;
  width: 100%;
  z-index: 444;
  padding-block: 14px !important;
  backdrop-filter: blur(3px);
  background-color: rgba(0, 0, 0, 0) !important;
  transition: all 0.5s ease, top 0.5s ease;

  @media screen and (max-width: 991px) {
    position: fixed;
    background-color: $black !important;
    opacity: 1 !important;
    top: 102px;
    padding-block: 0px !important;
  }
  @media screen and (max-width: 767px) {
    top: 108px;
  }
}
body.consultant #header {
  top: 64px;
  @media screen and (max-width: 991px) {
    top: 64px;
  }
  @media screen and (max-width: 767px) {
    top: 76px;
  }
}
.banner-wrapper:has(.blog-content, .project-content, .privacy-policy) #header {
  background: rgba(0, 0, 0, 0.822) !important;
  @media screen and (max-width: 991px) {
    background: $black !important;
  }
}
.user-logged-in #header {
  top: 116px;
  @media screen and (max-width: 991px) {
    top: 200px;
  }
  @media screen and (max-width: 767px) {
    top: 207px;
  }
}
body.consultant.user-logged-in #header {
  top: 116px;
  @media screen and (max-width: 991px) {
    top: 162px !important;
  }
  @media screen and (max-width: 767px) {
    top: 175px !important;
  }
}

html[lang="ar"] {
  .user-logged-in #header {
    top: 116px;
    @media screen and (max-width: 1200px) {
      top: 151px;
    }
    @media screen and (max-width: 991px) {
      top: 214px;
    }
    @media screen and (max-width: 767px) {
      top: 208px;
    }
  }
  body.consultant.user-logged-in #header {
    top: 116px;
    @media screen and (max-width: 991px) {
      top: 152px !important;
    }
    @media screen and (max-width: 767px) {
      top: 176px !important;
    }
  }
  #header {
    top: 64px;
    @media screen and (max-width: 1200px) {
      top: 64px;
    }
    @media screen and (max-width: 991px) {
      top: 52px !important;
    }
    @media screen and (max-width: 767px) {
      top: 77px !important;
    }
  }
  .scrolled #header {
    top: 0 !important;
  }
  .user-logged-in.scrolled #header {
    top: 51px !important;
  }
  body.consultant.user-logged-in.scrolled #header {
    top: 51px !important;
  }
}
.scrolled #header {
  top: 0 !important;
}
body.consultant.scrolled #header {
  top: 0 !important;
}
.user-logged-in.scrolled #header {
  top: 51px !important;
}
body.consultant.user-logged-in.scrolled #header {
  top: 51px !important;
}
@media screen and (max-width: 991px) {
  .user-logged-in.scrolled #header:has(.navbar-toggler[aria-expanded="true"]) {
    height: calc(100vh - 51px);
  }
  #header:has(.navbar-toggler[aria-expanded="true"]) {
    height: 100vh;
  }
}

#navbar-main {
  z-index: 9998 !important;
  transition: top 0.8s;
}

.node__content {
  margin-top: 0;
}

.top-header-wrapper {
  background-color: $black;
  padding: 18px 18px;

  p,
  a {
    font-family: "Brown-Light-Regular";
    font-size: $font-size-small;
    line-height: 24px;
    color: $white;
    // font-weight: 400;
  }
}

.social-icons {
  gap: 62px;
}

.left-section {
  gap: 48px;
}

/* Chevron Arrow */
.nav-item {
  &.dropdown {
    > a {
      &::after {
        content: "";
        display: inline-block;
        background-image: url("/themes/custom/walqalum/images/chevron-down.svg");
        background-size: contain;
        background-repeat: no-repeat;
        width: 12px;
        height: 8px;
        margin-left: 8px;
        [dir="rtl"] & {
          margin-left: 0;
          margin-right: 0.5rem;
        }
        position: relative;
        top: 3px;
        transition: transform 0.3s ease;
      }
    }
  }
}

.dropdown {
  .show::after {
    transform: rotate(180deg);
  }
}

.dropdown-toggle {
  &::after {
    border: none;
  }
}
.logo-mobile {
  display: none;
}
#block-walqalum-freetrialbutton {
  p {
    margin-bottom: 0 !important;
  }
}

.dropdown-menu.show {
  .dropdown-item {
    a {
      color: $black !important;
    }
  }
}
.dropdown-menu.show {
  margin-bottom: 14px;
  backdrop-filter: blur(10px);
  display: none;
  @media (max-width: 991px) {
    display: block !important;
  }
}
@media (min-width: 992px) {
  li.nav-item.menu-item--expanded.dropdown:hover .dropdown-menu {
    border: unset;
    display: flex;
    border-radius: unset;
    top: unset;
    margin: 0;
  }
}
.dropdown-item.active {
  background-color: unset !important;
}
.contextual-region {
  position: static !important;
}
.navbar {
  position: static !important;
}

.nav-item {
  &.menu-item--expanded {
    &.dropdown {
      position: static;
    }
  }
}

.dropdown-menu {
  width: 100%;
  left: 0;
  right: 0;
  column-gap: 160px;
  padding: 30px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  @media (max-width: 991px) {
    padding: 12px !important;
  }
}

.dropdown-item {
  &.menu-item--expanded {
    &.dropdown {
      width: auto;
      padding-block: 0 !important;
      padding-right: 0px;
      @media (max-width: 991px) {
        padding-left: 10px !important;
        margin-bottom: 10px !important;
      }
      .dropdown-toggle {
        margin-bottom: 20px;
        display: block;
        font-family: "Brown-Regular";
        @media (max-width: 991px) {
          margin-bottom: 14px !important;
        }
      }
      .dropdown-menu {
        position: static;
        flex-direction: column;
        display: flex !important;
        border: unset;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        .dropdown-item {
          border-left: 2px solid #c5c5c7;
          white-space: normal;
          padding-right: 0px;
          a {
            padding-left: 20px !important;
            font-family: "Brown-Light";

            &:hover {
              color: $Denim-Blue !important;
            }
          }
          &:hover {
            border-color: $Denim-Blue;
          }
          .is-active {
            color: $Denim-Blue !important;
          }
        }
        .active {
          border-color: $Denim-Blue !important;
        }
      }
    }

    &:not(.dropdown) {
      width: auto;
      border-left: 1px solid;
      padding-left: 30px !important;
      padding-block: 0 !important;

      .dropdown-menu {
        position: static;
        flex-direction: column;
        padding: 0 !important;
      }
    }
  }
}
html[lang="ar"] {
  .dropdown-item {
    &.menu-item--expanded {
      &.dropdown {
        width: auto;
        padding-block: 0 !important;
        padding-right: 0 !important;
        @media (max-width: 991px) {
          padding-left: 10px !important;
        }
        .dropdown-toggle {
          margin-bottom: 20px;
          display: block;
          font-family: "Bukra-Regular";
          text-align: right;
        }
        .dropdown-menu {
          position: static;
          flex-direction: column;
          display: flex !important;
          border: unset;
          padding: 0 !important;
          margin: 0 !important;
          .dropdown-item {
            border-left: unset;
            border-right: 2px solid #c5c5c7;
            text-align: right;
            white-space: normal;
            padding-left: 0 !important;
            padding-right: 8px !important;
            a {
              padding-left: 20px !important;
              font-family: "Bukra-Light";

              &:hover {
                color: $Denim-Blue !important;
              }
            }
            &:hover {
              border-color: $Denim-Blue;
            }
            .is-active {
              color: $Denim-Blue !important;
            }
          }
          .active {
            border-color: $Denim-Blue !important;
          }
        }
      }

      &:not(.dropdown) {
        width: auto;
        border-left: 1px solid;
        padding-left: 30px !important;
        padding-block: 0 !important;

        .dropdown-menu {
          position: static;
          flex-direction: column;
          padding: 0 !important;
        }
      }
    }
  }
}
@media (min-width: 992px) {
  li.nav-item.menu-item--expanded.dropdown:hover > a::after {
    transform: rotate(180deg);
  }
}

li.nav-item.menu-item--expanded.dropdown .dropdown-menu .dropdown-item a {
  padding: 0px !important;
  color: $heading-color !important;
}

li.dropdown-item {
  padding-block: 8px !important;
  @media (max-width: 991px) {
    padding-block: 4px !important;
  }
}

ul.dropdown-menu {
  padding: 10px;
}
// General button style
.navbar-toggler {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;

  // Hamburger icon (three bars)
  .icon-bars {
    display: block;
    background-color: white;
    width: 30px;
    height: 2px;
    margin: 6px auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    @media screen and (max-width: 576px) {
      width: 24px;
    }
  }

  // Cross (X) icon
  .icon-close {
    display: flex; // Ensure it's positioned properly
    justify-content: center;
    align-items: center;
    position: relative;
    top: 24px;
    left: 0;
    [dir="rtl"] & {
      top: 30px;
      left: 24px;
    }
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    display: none; // Hidden by default
    @media screen and (max-width: 576px) {
      width: 24px;
      height: 24px;
    }

    // Pseudo-elements for the X
    &::before,
    &::after {
      content: "";
      position: absolute;
      width: 30px;
      height: 2px;
      background-color: white;
      transition: transform 0.3s ease;
      @media screen and (max-width: 576px) {
        width: 24px;
      }
    }

    &::before {
      transform: rotate(45deg);
      top: 0;
    }

    &::after {
      transform: rotate(-45deg);
      top: 0;
    }
  }

  // Hide hamburger when expanded
  &:not(.collapsed) {
    .icon-bars {
      display: none !important;
    }

    // Show X icon when expanded
    .icon-close {
      display: block !important;
    }
  }

  // Ensure focus styles are clean
  &:focus {
    box-shadow: none !important;
  }

  button {
    &:focus:not(:focus-visible) {
      outline: none !important;
    }
  }
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  background: $black;
  // z-index: 1;
}
.language-selector {
  position: relative;
  // width: 110px;
  cursor: pointer;
  p {
    margin-bottom: 0 !important;
    .selected-language {
      display: flex;
      align-items: center;
      font-size: $font-size-xmedium;
      color: $white;
      cursor: pointer;
      position: relative;
      gap: 5px;
      background-color: transparent;
      border: none !important;
      font-family: "Brown-Light-Regular";
      .arrow {
        display: inline-block;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 6px solid white;
        transition: transform 0.3s;
      }

      &.active .arrow {
        transform: rotate(180deg);
      }
    }
  }
  .language-dropdown.show {
    display: block !important;
  }
  .language-dropdown {
    display: none !important;
  }
  .language-dropdown {
    position: absolute;
    top: 40px;
    left: 0;
    [dir="rtl"] & {
      left: 0;
      right: -31px;
    }
    width: 92px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    text-align: left;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.5);

    // Chevron border on top of dropdown
    // &::before {
    //   content: "";
    //   position: absolute;
    //   top: -12px;
    //   left: 24px;
    //   transform: translateX(-50%);
    //   width: 20px;
    //   height: 12px;
    //   background-color: rgba(0, 0, 0, 0.5);
    //   clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    //   border-top: 2px rgba(0, 0, 0, 0.5);
    //   border-left: 2px rgba(0, 0, 0, 0.5);
    //   border-right: 2px rgba(0, 0, 0, 0.5);
    // }

    .option {
      padding: 10px 12px;
      cursor: pointer;
      transition: background-color 0.3s;

      &:hover {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 5px;
      }
    }
    a {
      color: white;
      font-size: $font-size-base;
    }
  }
}
.selected-language {
  img {
    transition: transform 0.3s ease-in-out;
  }
}
.hire-me {
  display: none;
}
.rotate {
  transform: rotate(180deg);
}
.language-wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-left: 14px;
  @media screen and (max-width: 1024px) {
    padding-left: 0px;
    // margin-bottom: 100px;
  }

  .button-section {
    p {
      margin-bottom: 0 !important;
    }
  }

  @media screen and (max-width: 1280px) {
    gap: 14px !important;
  }

  @media screen and (max-width: 991px) {
    .button-section {
      width: 100%;
    }
  }
}

.logo-desktop {
  flex-shrink: 0;
  margin-left: 14px;
}
.dropdown-item {
  // padding-inline: 0 !important;
  &:hover,
  &:focus {
    background-color: rgba(255, 255, 255, 0.2) !important;
  }
}
.region-top-header {
  width: 100%;
  padding: 0;
  margin: 0;
}
#block-walqalum-pagetoptitle {
  padding: 0;
  margin: 0;
}

//   rt styles

.rtl-reverse {
  [dir="rtl"] & {
    flex-direction: row-reverse !important;
  }
}
.navbar-nav {
  [dir="rtl"] & {
    padding-right: 18px !important;
  }
}

/* Responsive header */

@media screen and (min-width: 992px) {
  .navbar {
    align-items: center;
  }
  .scrolled {
    #header {
      background-color: $black !important;
      top: 0;
      padding-top: 11px !important;
      padding-bottom: 11px;
    }
  }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
  .navbar-expand-lg {
    .navbar-nav {
      .nav-link {
        padding-right: 14px !important;
      }
    }
  }
  .banner-title h1 {
    font-size: $hero-title-responsive-xxlarge;
    line-height: 78.28px;
  }
}

@media screen and (max-width: 991px) {
  .navbar {
    .navbar-nav {
      a {
        [dir="rtl"] & {
          padding-right: 0 !important;
        }
      }
    }
  }
  .region-top-header-form {
    margin-left: auto;
    [dir="rtl"] & {
      margin-right: auto;
      margin-left: 0;
    }
  }
  .language-selector {
    margin-right: 22px;
    [dir="rtl"] & {
      margin-left: 22px;
      margin-right: 0;
    }
    width: auto;
  }
  .desktop-trial-button {
    .trial-button {
      display: none;
    }
  }
  .region-top-header-form {
    .trial-button {
      display: none;
    }
  }
  .mobile-button {
    .language-selector {
      display: block;
    }
  }
  .mobile-button {
    margin-top: 50px;
  }
  .navbar {
    padding-block: 14px !important;
  }
  .navbar {
    &-expand-lg {
      .navbar-nav {
        .nav-item {
          padding-inline: 16px;
          border-bottom: 0.5px solid $paragraph-color;
        }
      }
    }
    .navbar-nav {
      a {
        font-size: $font-size-small;
        line-height: 1.375rem;
        color: $white !important;
        text-decoration: none !important;
        padding-block: 20px !important;
      }
    }
  }
  .left-section {
    gap: 20px;
  }

  .social-icons {
    gap: 38px;
  }

  .banner-title h1 {
    font-size: $hero-title-responsive-xlarge;
    line-height: 66.28px;
    max-width: 655px;
  }

  #navbar-main.green {
    background-color: rgba(0, 0, 0, 0.9) !important;
  }

  #navbar-main {
    transition: background-color 0.35s ease-in-out;
  }

  .logo-mobile {
    display: block;
  }

  .logo-desktop {
    display: none;
  }
}
@media screen and (max-width: 991px) {
  .language-wrapper {
    gap: 20px !important;
    flex-direction: column;
    align-items: start;
    padding: 16px;
    // height: 100vh;
  }

  .language-selector {
    width: auto;
  }
}

@media screen and (max-width: 1024px) {
  .top-header-wrapper {
    display: none;
  }
}
@media screen and (max-width: 767px) {
  .banner-title h1 {
    font-size: $hero-title-responsive-xlarge;
    line-height: 54.28px;
    max-width: 655px;
    margin-top: 66px;
  }
}
@media screen and (max-width: 576px) {
  .logo-mobile {
    img {
      height: 38px;
    }
  }
}
