* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
  font-family: Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif;
}

section {
  margin-bottom: 50px;
}
nav {
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 3px solid yellow;
  font-weight: 00;
  background-color: rgb(55, 55, 55);
}

nav:after {
  content: "";
  clear: both;
  display: table;
}

nav .logo {
  width: 35%;
  float: left;
  color: navy;
  font-weight: 600;
  /* line-height: 70px; */
  padding-left: 60px;
  padding-top: 15px;
}

.logo img {
  float: left;
  margin-bottom: 3%;
  /* width: 150px;
    height: 50px; */
}

.logo p {
  position: absolute;
  line-height: 170px;
  color: white;
  font-size: 0.8em;
}

nav ul {
  float: right;
  margin-right: 40px;
  list-style: none;
  position: relative;
}

nav ul li {
  float: left;
  display: inline-block;
  background-color: rgb(55, 55, 55);
  margin: 0 5px;
}

nav ul li a {
  color: yellow;
  line-height: 100px;
  text-decoration: none;
  font-size: 18px;
  padding: 8px 15px;
}

nav ul li a:hover {
  background: white;
  color: navy;
  font-size: 20px;
  border-radius: 5px;
  box-shadow: 0 0 5px #1c23f2, 0 0 10px #113ded;
}

nav ul ul li a:hover {
  box-shadow: none;
  border-radius: 5px;
  box-shadow: 0 0 5px #1c23f2, 0 0 10px #113ded;
}

nav ul ul {
  position: absolute;
  top: 90px;
  border-top: 3px solid rgb(0, 38, 255);
  opacity: 0;
  visibility: hidden;
  transition: top 0.3s;
}

nav ul ul ul {
  border-top: none;
}

nav ul li:hover > ul {
  top: 70px;
  opacity: 1;
  visibility: visible;
}

nav ul ul li {
  position: relative;
  margin: 0px;
  width: auto;
  float: none;
  display: list-item;
  border-bottom: 1px solid rgba(4, 4, 4, 0.892);
  z-index: 2;
}

nav ul ul li a {
  line-height: 50px;
}

nav ul ul ul li {
  position: relative;
  top: -60px;
  left: 150px;
}

.show,
.icon,
input {
  display: none;
}

.fa-plus {
  font-size: 15px;
  margin-left: 40px;
}

.background::before {
  position: absolute;
  content: "";
  background: url(services/Pathology\ Lab\ hd\ 1.jpg) no-repeat;
  background-size: cover;
  height: 350px;
  width: 100%;
  z-index: -1;
}

.background {
  position: relative;
  height: 350px;
  background-image: linear-gradient(
    to right,
    rgba(106, 98, 98, 0),
    rgb(89, 82, 82)
  );
}

.background h2 {
  position: absolute;
  font-size: 2.5em;
  bottom: 0%;
  right: 0%;
  margin-right: 5%;
  color: white;
}

.rangeText h1 {
  margin-bottom: 2%;
  font-weight: 600;
  text-align: center;
}

.services {
  display: flex;
  margin-top: 2%;
}

.services div {
  width: 30%;
  margin: auto;
  /* height: 150px; */
  border: 3px solid grey;
  /* background: rgb(240, 227, 227); */
}

.services h2 {
  text-align: center;
  margin-top: 20%;
  background-color: rgba(255, 255, 255, 0.514);
  font-weight: 600;
  /* text-shadow: -0.01px 0.1px 0 white, 0.1px 0.1px 0 white, 0.1px -0.1px 0 white,
    -0.1px -0.1px 0 white; */
}

.services p {
  text-align: justify;
  padding: 2%;
  margin-top: 12%;
  margin-bottom: 2%;

  /* height: 150px; */
}

.services p a {
  display: inline-block;
  text-decoration: none;
  border: 2px solid yellow;
  margin-top: 2%;
  padding: 2%;
  border-radius: 20px;
  color: rgb(55, 55, 55);
}

.services p a:hover {
  transform: scale(1.1);
  background-color: rgb(55, 55, 55);
  color: yellow;
  transition-duration: 0.5s;
}

.Hematology::before {
  content: "";
  position: absolute;
  background: url(services/Hematology\ 1.jpg) no-repeat;
  width: 29.7%;
  height: 150px;
  background-size: cover;
  opacity: 0.8;
  z-index: -1;
}

.Biochemistry::before {
  content: "";
  position: absolute;
  background: url(services/Biochemistry\ 1.jpg) no-repeat;
  width: 29.7%;
  height: 150px;
  background-size: cover;
  opacity: 0.8;
  z-index: -1;
}

.Endocrinology::before {
  content: "";
  position: absolute;
  background: url(services/Endocrinology.jpg) no-repeat;
  width: 29.7%;
  height: 150px;
  background-size: cover;
  opacity: 0.8;
  z-index: -1;
}

.Histopathology::before {
  content: "";
  position: absolute;
  background: url(services/Histopathology\ 2.jpeg) no-repeat;
  width: 29.7%;
  height: 150px;
  background-size: cover;
  opacity: 0.8;
  z-index: -1;
}

.Cytology::before {
  content: "";
  position: absolute;
  background: url(services/Cytology.jpg) no-repeat;
  width: 29.7%;
  height: 150px;
  background-size: cover;
  opacity: 0.8;
  z-index: -1;
}

.MolecularBiology::before {
  content: "";
  position: absolute;
  background: url(services/Molecular\ Biology\ 2.jpg) no-repeat;
  width: 29.7%;
  height: 150px;
  background-size: cover;
  opacity: 0.8;
  z-index: -1;
}

.Immunology::before {
  content: "";
  position: absolute;
  background: url(services/Immunology\ 2.png) no-repeat;
  width: 29.7%;
  height: 150px;
  background-size: cover;
  opacity: 0.8;
  z-index: -1;
}

.Microbiology::before {
  content: "";
  position: absolute;
  background: url(services/Microbiology\ 1.jpg) no-repeat;
  width: 29.7%;
  height: 150px;
  background-size: cover;
  opacity: 0.8;
  z-index: -1;
}

/* ........... footer ............ */

footer {
  width: 100%;
  padding-top: 3%;
  display: flex;
  text-align: center;
  background: linear-gradient(
    0deg,
    rgb(35, 136, 213) 0%,
    rgba(255, 255, 255, 1) 90%
  );
}

.Company {
  width: 30%;
  margin-left: auto;
  margin-right: auto;
}

.Company ul {
  list-style: none;
  margin-top: 5%;
}

.Company ul a {
  text-decoration: none;
  color: black;
}

.contactFooter {
  width: 30%;
  margin-left: auto;
  margin-right: auto;
}

.contactFooter p {
  margin-top: 5%;
}

.addressFooter {
  width: 30%;
  margin-left: auto;
  margin-right: auto;
}

.addressFooter p {
  margin-top: 5%;
}

.copyRight {
  background-color: rgb(55, 55, 55);
  text-align: center;
  color: yellow;
}

@media all and (max-width: 968px) {
  nav ul {
    margin-right: 0px;
    float: left;
  }
  nav .logo {
    padding-left: 30px;
    width: 100%;
  }
  nav ul li,
  nav ul ul li {
    display: block;
    width: 100%;
  }
  nav ul ul {
    top: 70px;
    position: static;
    border-top: none;
    float: none;
    display: none;
    opacity: 1;
    visibility: visible;
  }
  nav ul ul li {
    border-bottom: 0px;
  }
  nav ul ul ul {
    position: static;
  }
  nav ul ul a {
    padding-left: 40px;
  }
  .show {
    display: block;
    color: yellow;
    font-size: 18px;
    padding: 0px 15px;
    line-height: 80px;
    cursor: pointer;
  }
  .show :hover {
    color: navy;
  }
  .icon {
    display: block;
    color: yellow;
    position: absolute;
    right: 40px;
    font-size: 25px;
    line-height: 70px;
    cursor: pointer;
  }
  nav ul a :hover {
    box-shadow: none;
  }
  .show + a,
  ul {
    display: none;
  }
  [id^="btn"]:checked + ul {
    display: block;
  }
  #quicklinks {
    display: block;
  }
  .textFAQ ul {
    display: block;
  }
  .Company ul {
    display: block;
  }
}

@media only screen and (max-width: 968px) and (min-width: 600px) {
  .services p {
    /* height: 250px; */
    margin-top: 32%;
  }
}

@media only screen and (max-width: 600px) {
  .logo p {
    font-size: 0.8em;
  }
  .background h2 {
    font-size: 1.5em;
  }

  .services {
    display: block;
    margin-bottom: 3%;
  }
  .services div {
    width: 90%;
    margin: 2% auto;
    /* height: auto; */
    /* border: 3px solid grey; */
    /* background: rgb(240, 227, 227); */
  }
  /* .services img {
        height: 50px;
    } */
  .services p {
    height: fit-content;
    margin-top: 8%;
  }
  .Hematology::before {
    content: "";
    position: absolute;

    width: 89.7%;
    height: 120px;
    background-size: cover;
    opacity: 0.8;
    z-index: -1;
  }
  .Biochemistry::before {
    content: "";
    position: absolute;

    width: 89.7%;
    height: 120px;
    background-size: cover;
    opacity: 0.8;
    z-index: -1;
  }
  .Endocrinology::before {
    content: "";
    position: absolute;

    width: 89.7%;
    height: 120px;
    background-size: cover;
    opacity: 0.8;
    z-index: -1;
  }
  .Histopathology::before {
    content: "";
    position: absolute;

    width: 89.7%;
    height: 120px;
    background-size: cover;
    opacity: 0.8;
    z-index: -1;
  }
  .Cytology::before {
    content: "";
    position: absolute;

    width: 89.7%;
    height: 120px;
    background-size: cover;
    opacity: 0.8;
    z-index: -1;
  }
  .MolecularBiology::before {
    content: "";
    position: absolute;

    width: 89.7%;
    height: 120px;
    background-size: cover;
    opacity: 0.8;
    z-index: -1;
  }
  .Immunology::before {
    content: "";
    position: absolute;

    width: 89.7%;
    height: 120px;
    background-size: cover;
    opacity: 0.8;
    z-index: -1;
  }
  .Microbiology::before {
    content: "";
    position: absolute;

    width: 89.7%;
    height: 120px;
    background-size: cover;
    opacity: 0.8;
    z-index: -1;
  }
  /* footer  */
  footer {
    width: 100%;
    display: block;
    text-align: center;
    padding-bottom: 10px;
    background: linear-gradient(
      0deg,
      rgb(35, 136, 213) 0%,
      rgba(255, 255, 255, 1) 90%
    );
  }
  footer div {
    margin-top: 10%;
  }
  .Company {
    margin-top: 5%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .Company ul {
    list-style: none;
    margin-top: 3%;
  }
  .Company ul a {
    text-decoration: none;
    color: black;
  }
  .contactFooter {
    width: 100%;

    margin-left: auto;
    margin-right: auto;
  }
  .contactFooter p {
    margin-top: 3%;
  }
  .addressFooter {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
  }
  .addressFooter p {
    margin-top: 3%;
  }
 
.rangeText h1 {
    font-size: 1.5rem;
    margin-bottom: 2%;
    font-weight: 600;
    text-align: center;
}

}
