/* Main Menu Navigation Links */
body .main-menu .nav-item  {
  text-decoration: none;   /* Removes underline from links */
  color: white;    /* Sets text color to white */
  font-size: 20px;   /* Sets font size */
  padding: 15px;     /* Adds padding around the links */
  display: inline-block; /* Displays links as inline-block elements*/
  margin: 0 3px;     /* Sets margin around the links */
}

/* Hover Effect for Navigation Links */
/* Styles for the navigation links when we hovered over */
body .main-menu .nav-item:hover a,
body .main-menu .nav-item.hovered a {
  text-decoration: underline;     /* Adds underline on hover */
  width: auto;                    /* width adjust automatically */
  height: 100%;                   /* sets height to 100% */
}

/* Styles for the overlay titles when we hovered over */
body .menu-overlay-content .title h4 a:hover {
  font-size: 19px;  /* Increase font size on hover */
}

/* Styles for subheading when hovered over*/
body .title-sub-heading:hover {
  color: black;  /* changes textg color to black */

}

/* Sets general styles for navigation links */
body .nav a {
  font-size: 15px;           /* Sets font size */
  text-transform: uppercase; /*Transforms text to uppercase */
  color: #ffffff;          /* Sets text color to white */
  text-decoration: none;     /* Removes underline from links */
  line-height: 50px;        /* Sets line Height */
  position: relative;      /* Sets position to relative */
  z-index: 1;              /* Sets z-index */
  display: inline-block;  /* Displays links as inline-block elements*/
  text-align: center;     /* Centers the text */

}

/* Styles for submenu links when hovered over */
body .nav .sub-menu a:hover {
  text-decoration: underline;   /* Adds underline on hover */

}

/* Sets styles for submenu list heading links */
body .sub-menu-list .sub-menu-list-Heading a {
  color: #111111;   /* Sets text color */
}


/* Styles for submenu list heading links when hovered over */
body .sub-menu-list .sub-menu-list-Heading a:hover {
  font-size: 39px;    /* Increase font size on hover */
  font-weight: bold;  /* Makes text bold */
  display: inline-block;  /* Displays as inline-block */
}


/* Sets styles for submenu list title links */
body .sub-menu-list .sub-menu-list-title a {
  color: #424242; /* Sets text color */

}

/* Styles for submenu list title links when hovered over */
body .sub-menu-list .sub-menu-list-title a:hover {
  text-decoration: underline; /* Adds underline on hover */
  color: rgb(45,168,217);   /* changes text color */
  font-weight: 900;           /* sets font weight */
  font-size: 17px;            /* Increases font size */
  display: inline-block;      /* Displays as inline-block */
}


/* Styles for submenu lists when hovered over */
body .sub-menu-list:hover{
  background-color: transparent;    /* Sets background color to transparent */
}

/* Sets styles for the menu overlay */
body .menu-overlay {
  display: none;    /* Hides the overlay by default */
}


/* Sets background color for the service menu when hovered over */
body .nav-item a:hover #service-menu {
  background-color: gray;   /* sets background color */
}

/* Sets background color for hovered state */
body #service-menu.hovered, body #industries-menu.hovered, body #careers-menu.hovered {
  background-color: #FFFFFF;    /* Sets background color to white */
}


/* Sets general styles for unordered lists */
body ul {
  display: inline;  /* Displays list items inline */
  margin: 0;        /* Removes margin */
  padding: 0;      /* Removes padding */
}

/* Sets styles for main menu list items */
body .main-menu li {
  display: inline-block;    /* Displays list items as inline-block */
}



/* Media Queries */
/* Extra Small Devices (phones, 600px and down) */

@media (max-width:600px) {
  body .nav a {
    font-size: 12px;
    line-height: 40px;
  }
  body .sub-menu-list .sub-menu-list-Heading a:hover {
    font-size: 25px;
  }
  body .sub-menu-list .sub-menu-list-title a:hover{
    font-size: 14px;
  }
  body .main-menu .nav-item a{
    font-size: 16px;
    padding: 10px;
    margin: 0 2px;
    /* Reduced margin for smaller screens */
  }
}

/* Small Devices (portrait tablets and large phones, 600px and up) */
@media (min-width:600px) and (max-width:768px){
  body .nav a {
    font-size: 14px;
    line-height: 45px;
  }
  body .sub-menu-list .sub-menu-list-Heading a:hover{
    font-size: 15px;
  }
  body .sub-menu-list .sub-menu-list-title a:hover {
    font-size: 15px;
  }
  body .main-menu .nav-item a {
    font-size: 18px;
    padding: 12px;
    margin: 0 2px;
    /* Reduced margin for small devices */
  }
}

/* Medium Devices (landscape tablets, 768px and up ) */
@media (min-width:768px) and (max-width:992px){
  body .nav a {
    font-size: 15px;
    line-height: 50px;
  }
  body .sub-menu-list .sub-menu-list-Heading a:hover{
    font-size: 35px;
  }
  body .sub-menu-list .sub-menu-list-title a:hover {
    font-size: 16px;
  }
  body .main-menu .nav-item a {
    font-size: 19px;
    padding: 14px;
    margin: 0 2px;
    /* Reduced margin for medium devices */

  }
}

/* Large Devices (laptops/desktops, 992px and up) */
@media (min-width :992px){
  body .nav a {
    font-size: 15px;
    line-height: 50px;
  }
  body .sub-menu-list .sub-menu-list-Heading a:hover{
    font-size: 39px;
  }
  body .sub-menu-list .sub-menu-list-title a:hover {
    font-size: 17px;
  }
  body .main-menu .nav-item a {
    font-size: 20px;
    padding: 15px;
    margin: 0 2px;
    /* Reduced margin for large devices */
  }
}