/*navbar hamburger button*/
@media screen and (max-width: 1149px) {
  nav ul {
    position: fixed;
    right: -100%;
    top: 108px;
    flex-direction: column;
    justify-content: start;
    padding: 20px;
    margin-left: -9%;
    height: 100vh;
    width: 100%;
    transition: all 0.5s ease-in-out;
  }

  nav :checked ~ ul {
    right: 0;
    background-color: #ffffff;
    margin-left: -9%;
    height: 100vh;
  }

  nav :checked ~ .icon .line:nth-child(1) {
    transform: translateY(8px) rotate(225deg);
  }

  nav :checked ~ .icon .line:nth-child(3) {
    transform: translateY(-8px) rotate(-225deg);
  }

  nav :checked ~ .icon .line:nth-child(2) {
    opacity: 0;
  }

  nav ul li {
    padding: 20px 0;
    width: 100%;
    border-bottom: 0.5px solid #cbcbcb;
    position: relative;
  }

  nav ul li:nth-child(5) {
    margin-bottom: 20px;
    border: none;
  }

  nav ul li:nth-child(2),
  nav ul li:nth-child(3),
  nav ul li:nth-child(4) {
    margin-left: auto;
  }

  .dropdown,
  .p-dropdown,
  .s-dropdown,
  .r-dropdown {
    z-index: 200001;
  }

  .about-dropdown {
    display: grid;
    margin-top: 0;
    height: 100vh;
  }

  .banner .about-dropdown .company-links .double-up {
    display: block;
  }

  /* .banner .about-dropdown #products-links .double-up {
    position: absolute;
    left: 50%;
    top: 90%;
    transform: translate(-50%, -90%);
  } */

  .drop-arrow {
    position: absolute;
    top: 50%;
    left: 98%;
    transform: translate(-98%, -50%);
  }

  nav .icon {
    display: block;
  }

  nav button {
    display: block;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
  }

  .banner .about-dropdown .blogs,
  .dropdown-footer {
    display: none;
  }

  #p-dropdown .about-dropdown {
    overflow-y: scroll;
  }

  #products-links {
    width: 100%;
    min-height: 100%;
    display: block;
  }

  #products-links #left #bulk {
    margin-top: 0;
  }

  #products-links #right button {
    margin-bottom: 150px;
  }
}

/*navbar and dropdown resize*/
@media screen and (min-height: 901px) {
  .about-dropdown {
    margin-top: 108px;
  }
}

@media screen and (max-height: 900px) {
  nav {
    padding: 15px 120px;
  }

  .about-dropdown {
    margin-top: 98px;
  }

  .banner .about-dropdown .company-links {
    padding: 20px 0 0 120px;
  }

  .banner .about-dropdown .company-links h3 {
    margin-bottom: 20px;
  }

  .banner .about-dropdown .company-links .link-pair {
    margin-bottom: 20px;
  }

  .banner .about-dropdown .blogs {
    padding: 20px 120px;
  }

  .banner .about-dropdown .blogs .blog-details div .blog-img {
    margin-bottom: 10px;
  }

  .banner .about-dropdown .blogs .blog-details div .blog-title {
    margin-bottom: 7px;
    line-height: 25px;
  }

  .banner .about-dropdown .blogs .blog-details div .blog-text {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 25px;
  }

  .banner .about-dropdown .blogs .blog-details div .blog-link {
    font-size: 15px;
  }

  #products-links #left #bulk {
    margin-top: 40px;
  }
}

@media screen and (max-width: 1600px) {
  .banner .about-dropdown .company-links {
    width: 25%;
  }

  .banner .about-dropdown .blogs {
    width: 75%;
    padding: 20px 120px 20px 50px;
  }
}

@media screen and (min-height: 901px) and (max-width: 1600px) {
  .banner .about-dropdown .blogs {
    width: 75%;
    padding: 40px 120px 20px 50px;
  }
}

@media screen and (max-width: 1510px) {
  #products-links {
    width: 80%;
  }

  #p-dropdown .blog-details div {
    width: 55%;
  }

  #p-dropdown .blog-details div:nth-child(2) {
    margin-right: 0;
  }
}

@media screen and (max-width: 1225px) {
  #products-links {
    width: 95%;
  }

  #p-dropdown .blog-details div {
    width: 55%;
  }

  #p-dropdown .blog-details div:nth-child(2) {
    margin-right: 0;
  }
}

@media screen and (min-width: 1000px) and (max-width: 1300px) {
  .banner .about-dropdown .company-links {
    padding: 20px 0 0 70px;
  }

  .banner .about-dropdown .blogs {
    padding: 20px 70px;
  }

  .dropdown-footer {
    padding: 10px 70px;
  }
}

@media screen and (max-width: 499px) {
  nav {
    padding: 20px 10px;
  }

  nav ul {
    z-index: 100;
  }

  .about-dropdown {
    margin-top: 0;
  }

  .banner .about-dropdown .company-links {
    width: 100%;
    padding-left: 20px;
    padding-top: 70px;
  }

  #products-links,
  #services-links,
  #resources-links {
    width: 100%;
  }

  #products-links #left #bulk {
    margin-top: 0;
  }
}

@media screen and (min-width: 500px) and (max-width: 900px) {
  nav {
    padding: 20px 50px;
  }

  nav ul {
    padding-left: 50px;
    padding-right: 50px;
  }

  .about-dropdown {
    margin-top: 0;
  }

  .banner .about-dropdown .company-links {
    width: 100%;
    padding-left: 50px;
    padding-top: 100px;
  }

  #services-links {
    width: 100%;
  }

  #products-links #left #bulk {
    margin-top: 0;
  }
}

@media screen and (min-width: 901px) and (max-width: 1300px) {
  nav {
    padding: 20px 70px;
  }
}

@media screen and (min-width: 901px) and (max-width: 1149px) {
  nav ul {
    padding-left: 70px;
    padding-right: 70px;
  }

  .about-dropdown {
    margin-top: 0;
  }

  .banner .about-dropdown .company-links {
    width: 100%;
    padding-left: 70px;
    padding-top: 100px;
  }
}
