.header-navigation {
  /* position: relative; */
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.nav-menu > li {
  /* position: relative; */
  margin-right: 20px;
}

.nav-menu > li > a {
  text-decoration: none;
  color: #000;
  display: inline;
  /* margin-right: 10px; */
  /* display: flex; */
  /* gap: 5px; */
  text-transform: capitalize;
}
.menu-item:hover > img {
  rotate: 180deg;
  transition: all 0.5s ease;
  filter: brightness(0) saturate(100%) invert(23%) sepia(54%) saturate(4048%)
    hue-rotate(207deg) brightness(90%) contrast(101%);
}
.menu-item:hover > .mega-menu-services {
  display: flex; /* Show when hovering over the menu item */
}
.header-navigation .nav-menu .mega-menu-services {
  top: 30px !important;
}
.nav-menu .mega-menu-services {
  display: none; /* Hidden by default */
  position: absolute;
  top: 30px;
  left: 0;
  width: fit-content; /* Adjust width as needed */
  padding: 35px 0px 0;
  z-index: 1000;
  margin: 0 auto;
  right: 0;

  /* Grid display should only be set when showing */
}
.mega-menu-services .mega-menu-content {
  width: 100%;
  /* padding: 40px; */
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.mega-menu-services .mega-menu-content .sub-services {
  width: 100%;
  padding: 50px;
  background-color: #fff;
  display: flex;
  gap: 30px;
}

.mega-menu-services .mega-menu-content .sub-services .sub-service-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}
.sub-service-list .sub-service {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sub-service-list .service-name {
  font-family: "ABC Favorit Variable";
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1px;
  text-align: left;
  color: #03033a;
  text-transform: uppercase;
}
.sub-service-list .service-items {
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.sub-service-list .service-item {
  list-style: outside;
  margin-left: 20px;
}
.sub-service-list .service-item a {
  font-family: "ABC Favorit Variable";
  font-size: 14px;
  font-weight: 350;
  line-height: 20px;
  text-align: left;
  color: #03033a;
}
.sub-service-list .service-item a:hover {
  color: #005ad3;
}
.mega-menu-services .mega-menu-content .services-blogs {
  width: 30% !important;
  height: auto !important;
  padding: 50px;
  background-color: #eeeff5;
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.header-content .mega-menu-services .mega-menu-content .services-blogs {
  height: auto !important;
}
.services-nav-blogs {
  display: flex;
  gap: 15px;
}
.services-nav-blogs img {
  width: 250px;
  height: 150px;
}
.services-nav-blogs .posts-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.services-nav-blogs .posts-content .item-category a {
  font-family: "ABC Favorit Variable";
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 1px;
  text-align: left;
  color: #005ad3;
  text-transform: uppercase;
}
.services-nav-blogs .posts-content .item-title {
  font-family: "ABC Favorit Variable";
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  text-align: left;
  color: #03033a;
}
.services-nav-blogs .posts-content .item-expect a {
  font-family: "ABC Favorit Variable";
  font-size: 16px;
  font-weight: 350;
  line-height: 26px;
  text-align: left;
  color: #03033a;
}

.services-nav-blogs img {
  width: 280px;
  height: 180px;
}

/* <------------EXPERTIES MEGA MENU -----------> */
.mega-menu-content .expertise-nav-items {
  width: 100%;
  display: flex;
  padding: 60px 50px;
  justify-content: space-between;
  gap: 100px;
}

.mega-menu-content .expertise-nav-items .expertise-nav-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid #03033a10;
}
.mega-menu-content .expertise-nav-items div:last-child {
  border: none;
}
.expertise-nav-item .item-name {
  font-family: "ABC Favorit Variable";
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1px;
  text-align: left;
  color: #03033a;
  text-transform: uppercase;
}
.expertise-nav-item .item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.expertise-nav-item .item-list .item {
  list-style: outside;
  margin-left: 15px;
}
.expertise-nav-item .item-list .item a {
  font-family: "ABC Favorit Variable";
  font-size: 16px;
  font-weight: 350;
  line-height: 20px;
  text-align: left;
  color: #03033a;
}
.expertise-nav-item .item-list .item a:hover {
  color: #005ad3;
}

/* <------------INDUSTRIES MEGA MENU -----------> */
.mega-menu-content .industries-nav-items {
  width: 100%;
  display: flex;
  padding: 60px 50px;
  justify-content: space-between;
  gap: 50px;
}

.mega-menu-content .industries-nav-items .industries-nav-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid #03033a10;
}
.mega-menu-content .industries-nav-items div:last-child {
  border: none;
}
.industries-nav-item .item-name {
  font-family: "ABC Favorit Variable";
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1px;
  text-align: left;
  color: #03033a;
  text-transform: uppercase;
}
.industries-nav-item .item-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.industries-nav-item .item-list .item {
  /* list-style: outside; */
  /* margin-left: 15px; */
  display: flex;
  align-items: center;
  gap: 10px;
}
.industries-nav-item .item-list .item a {
  font-family: "ABC Favorit Variable";
  font-size: 16px;
  font-weight: 350;
  line-height: 20px;
  text-align: left;
  color: #03033a;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.industries-nav-item .item-list .item a p {
  font-weight: 500;
}
.industries-nav-item .item-list .item a span {
  color: #03033a80;
  font-size: 14px;
}
.industries-nav-item .item-list .item a:hover {
  color: #005ad3;
}

/* <------------COMPANY MEGA MENU -----------> */

.mega-menu-content .company-nav-items {
  width: 40%;
  display: flex;
  padding: 50px;
  justify-content: space-between;
  gap: 15px;
}
.mega-menu-content .company-nav-items .company-nav-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.company-nav-item .item-name {
  font-family: "ABC Favorit Variable";
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1px;
  text-align: left;
  color: #03033a;
  text-transform: uppercase;
}
.company-nav-item .item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.company-nav-item .item-list .item a {
  font-family: "ABC Favorit Variable";
  font-size: 16px;
  font-weight: 350;
  line-height: 20px;
  text-align: left;
  color: #03033a;
}
.company-nav-item .item-list .item a:hover {
  color: #005ad3;
}
.mega-menu-services .mega-menu-content .company-blogs {
  width: 60%;
  height: 100%;
  padding: 50px;
  background-color: #eeeff5;
  display: flex;
  /* flex-direction: column; */
  gap: 20px;
}
.company-nav-blogs {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.company-nav-blogs > a {
  width: 100%;
}
.company-nav-blogs img {
  width: 100%;
  height: 240px;
}
.company-nav-blogs .posts-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.company-nav-blogs .posts-content .item-category a {
  font-family: "ABC Favorit Variable";
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 1px;
  text-align: left;
  color: #005ad3;
  text-transform: uppercase;
}
.company-nav-blogs .posts-content .item-title {
  text-align: left;
}
.company-nav-blogs .posts-content .item-title a {
  font-family: "ABC Favorit Variable";
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  text-align: left;
  color: #03033a;
}
.company-nav-blogs .posts-content .item-expect a {
  font-family: "ABC Favorit Variable";
  font-size: 16px;
  font-weight: 350;
  line-height: 26px;
  text-align: left;
  color: #03033a;
}

@media only screen and (max-width: 1024px) {
  .menu-item:hover > .mega-menu-services {
    display: none; /* Show when hovering over the menu item */
  }
  .header-navigation {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }
  .menu-item:hover > img {
    rotate: unset;
    filter: unset;
  }
  .header-navigation.open-menu {
    max-height: fit-content;
    height: auto; /* Adjust this value based on your menu's height */
    min-height: calc(100vh - 130px);
  }

  /* Initially hide the mega menu */
  .nav-menu .menu-item .mega-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
  }

  /* Show the mega menu when open-mega-menu class is added */
  .nav-menu .menu-item .open-mega-menu {
    max-height: 100%; /* Adjust according to the content */
    opacity: 1;
    display: flex;
  }

  nav.header-navigation {
    /* display: none; */
    position: absolute;
    top: 100%;
    width: 100%;
    left: 0;
    /* border: 1px solid red; */
    padding: 0px;
    background-color: #fff;
    z-index: 999;
  }
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    width: 100%;
    flex-direction: column;
    gap: 0;
  }
  .nav-menu > li {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    /* padding: 20px 50px; */
  }
  .nav-menu > li > img {
    width: fit-content;
    margin-left: auto;
    margin-right: 30px;
  }
  .nav-menu > li > a {
    justify-content: space-between;
    padding: 10px 30px;
  }
  .header-contact {
    width: 100%;
  }

  .mega-menu-services {
    position: relative;
    padding: 0;
    top: unset;
  }
  .mega-menu-services .mega-menu-content {
    flex-direction: column;
    background-color: #eeeff5;
    box-shadow: none;
  }
  .mega-menu-services .mega-menu-content .sub-services {
    background-color: transparent;
  }

  /* <----SERVICES NAV ----> */

  .mega-menu-services .mega-menu-content .services-blogs {
    flex-direction: row;
  }
  .services-nav-blogs {
    flex-direction: column;
    align-items: flex-start;
  }

  /* <----COMPANY NAV ----> */

  .mega-menu-content .company-nav-items {
    width: 100%;
  }
  .mega-menu-services .mega-menu-content .company-blogs {
    width: 100%;
  }
}

@media only screen and (max-width: 768px) {
  .mega-menu-services .mega-menu-content .sub-services {
    padding: 50px 30px;
  }
  .sub-service-list .service-items {
    display: none;
  }

  .sub-service-list .service-name {
    cursor: pointer;
    font-weight: bold;
    background-image: url(https://insightsourcing-stage.bigdropinc.net/wp-content/uploads/2024/09/accordion-open.svg);
    background-repeat: no-repeat;
    background-position: center right;
  }
  .service-name.active {
    background-image: url(https://insightsourcing-stage.bigdropinc.net/wp-content/uploads/2024/09/accordion-close.svg);
    background-repeat: no-repeat;
    background-position: center right;
  }
  .sub-service-list .service-items {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }

  .service-name.active + .service-items {
    display: block;
  }
  .sub-service-list .sub-service {
    width: 100%;
  }
  .mega-menu-services .mega-menu-content .services-blogs {
    padding: 50px 30px;
  }

  /* /////INDUSTRY/// */
  .mega-menu-content .industries-nav-items {
    padding: 50px 30px;
  }
  .mega-menu-content .industries-nav-items {
    flex-direction: column;
    gap: 15px;
  }
  .mega-menu-content .industries-nav-items .industries-nav-item {
    border-right: none;
  }

  /* //////COMPANY/// */
  .mega-menu-content .company-nav-items {
    padding: 50px 30px;
  }
  .mega-menu-services .mega-menu-content .company-blogs {
    padding: 50px 30px;
  }
  .company-nav-blogs img {
    height: 180px;
  }

  /* //////EXPERTIES/// */
  .mega-menu-content .expertise-nav-items {
    gap: 50px;
  }
  .mega-menu-content .expertise-nav-items .expertise-nav-item {
    border-right: none;
  }
  .expertise-nav-item .item-list .item {
    margin-left: 0;
  }
  .mega-menu-content .expertise-nav-items {
    padding: 50px 30px;
  }
}

@media only screen and (max-width: 600px) {
  .header-logo {
    width: 60%;
  }
  .header-contact {
    display: flex;
  }
  .menu-toggle {
    margin-left: 15px;
  }

  .mega-menu-services .mega-menu-content .sub-services {
    padding: 50px 30px 0;
    flex-direction: column;
  }
  .mega-menu-services .mega-menu-content .services-blogs {
    flex-direction: column;
  }
  .services-nav-blogs a {
    width: 100%;
  }
  .services-nav-blogs img {
    width: 100%;
    height: 220px;
  }

  .mega-menu-content .expertise-nav-items {
    flex-direction: column;
  }

  .mega-menu-services .mega-menu-content .company-blogs {
    flex-direction: column;
  }
  .company-nav-blogs {
    width: 100%;
  }

  .mega-menu-content .company-nav-items {
    padding: 50px 30px 0;
  }
  .header-contact {
    width: 70%;
  }
}
@media only screen and (max-width: 380px) {
  .header-contact {
    display: none;
  }
}
