* {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
.navbar {
  width: 100%;
  align-items: center;
  vertical-align: middle;
  background-color: #0077b6;
  height: 80px;
  display: flex;
}

.navbar a .logo {
  height: 55px;
  width: auto;
  margin-left: 30px;
}

.menu-icon {
  height: 20px;
  width: 50px;
  cursor: pointer;
  display: none;
  margin-right: 15px;
}

.navbar nav {
  flex: 1;
  text-align: right;
  position: relative;
}

.navbar nav ul li {
  display: inline-block;
  list-style: none;
  padding-right: 30px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

.navbar ul li::after {
  content: "";
  width: 0px;
  height: 3px;
  background: white;
  display: block;
  margin: auto;
  transition: 0.5s;
}

.navbar ul li:hover::after {
  width: 100%;
}

.title {
  display: flex;
}

img {
  width: 40px;
}

.doctors-img-header {
  width: 100%;
  height: 40vh;
  background-image: url("../images/doc-bg.webp");
  background-position: center;
  background-size: cover;
  box-sizing: border-box;
  position: relative;
}

.doctors-img-header h1 {
  font-weight: 100;
  font-family: "Montserrat";
  padding: 40px 20px 40px 100px;
  flex-basis: auto;
}
.doctors-img-header p {
  padding: 0 100px;
  padding-right: 30%;
}
.doctors-img-header img {
  width: 40px;
}

.page-container {
  position: relative;
  min-height: 100vh;
}

.content {
  padding-bottom: 2.5rem;
}

.search {
  width: 600px;
  z-index: 10;
  margin: auto;
  margin-top: 1%;
}

.srch {
  font-family: "Times New Roman";
  width: 400px;
  height: 40px;
  background: transparent;
  border: 1px solid rgb(17, 112, 180);
  border-right: none;
  margin-top: 13px;
  float: left;
  font-size: 16px;
  color: black;
  padding: 10px;
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
  z-index: 10;
}

.btn {
  width: 200px;
  height: 40px;
  background: #0077b6;
  margin-top: 13px;
  border: 2px solid #0077b6;
  font-size: 15px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  color: white;
  z-index: 10;
  cursor: pointer;
}

.btn:hover {
  outline: none;
}

.srch:focus {
  outline: none;
}

#searchTip {
  display: none;
}

.doctors-cards {
  width: 70%;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;

  padding-bottom: 50px;
}

.doctor {
  margin: 15px;
  width: 260px;
  height: 350px;
  cursor: pointer;
  transition: 0.5s;
}

.doctor::after {
  content: "";
  width: 0px;
  height: 3px;
  background: #0077b6;
  display: block;
  margin: auto;
  transition: 0.5s;
}

.doctor:hover::after {
  width: 100%;
}

.doctor .doc-img img {
  height: 200px;
  width: auto;
  max-width: 200px;
  object-fit:cover
}

.doc-info div {
  display: flex;
}

.doc-info h2 {
  color: #0d3691;
  font-weight: 600;
  font-size: 20px;
  font-family: "Montserrat";
  margin-bottom: 10px;
}

.doc-info h3 {
  font-weight: 600;
  font-size: 15px;
}

.doc-info p {
  font-size: 15px;
  margin: 0 5px;
}

#docImg {
  height: 300px;
  width: auto;
  margin-right: 20px;
}
#docName {
  color: #0d3691;
  font-size: 25px;
  font-weight: 200;
}

.modal-body {
  display: flex;
}

.modal-body .col {
  margin-top: 5px;
}

.footer {
  display: flex;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 40px;
  background-color: rgb(42, 42, 42);
  align-items: center;
}

.footer p {
  font-size: 13px;
  color: white;
  margin-left: 30px;
}

@media only screen and (max-width: 1200px) {
  .doctors-cards {
    width: 85%;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-bottom: 50px;
  }
}

@media only screen and (max-width: 700px) {
  .navbar {
    height: 60px;
    padding-top: 5px;
  }
  .navbar nav {
    padding: 25px 0;
  }
  .navbar nav ul {
    width: 100%;
    background-color: #0077b6;
    position: absolute;
    top: 50px;
    right: 0;
    z-index: 10;
  }

  .navbar nav ul li {
    display: block;
    list-style: none;
    padding: 10px;
  }

  .menu-icon {
    display: block;
    width: 25px;
  }

  #menuList {
    overflow: hidden;
    transition: 0.5s ease;
  }

  .navbar a .logo {
    width: 50px;
    margin-left: 10px;
  }

  .modal-body {
    display: inline;
    text-align: center;
    padding: 10px;
  }

  .doctors-img-header {
    height: 50vh;
  }

  .doctors-img-header h1 {
    font-weight: 100;
    font-family: "Montserrat";
    padding: 20px 20px 40px 30px;
    flex-basis: auto;
  }
  .doctors-img-header p {
    padding: 0 30px;
  }

  .no-doc-intro {
    display: none;
  }
  #docIntro {
    transition: 0.5s;
  }
  .search {
    width: 300px;
    margin: 0 30px;
  }

  .srch {
    width: 240px;
    font-size: 12px;
    box-sizing: border-box;
  }

  ::-webkit-input-placeholder {
    color: transparent;
  }

  :-moz-placeholder {
    /* Firefox 18- */
    color: transparent;
  }

  ::-moz-placeholder {
    /* Firefox 19+ */
    color: transparent;
  }

  :-ms-input-placeholder {
    color: transparent;
  }

  .btn {
    width: 60px;
    font-size: 13px;
  }

  #searchTip {
    display: unset;
    font-size: 12px;
  }

  .doctors-cards {
    width: 95%;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr;
    padding-bottom: 50px;
  }

  .doctor {
    height: 150px;
    display: flex;
    margin: 5px 0 0 0;
    width: 100%;
  }

  .doctor .doc-img img {
    height: 70%;
    max-width: 130px;
    padding-right: 15px;
    vertical-align: middle;
  }

  .doc-info h2 {
    font-size: 15px;
    font-family: "Montserrat";
  }

  .doc-info h3 {
    font-weight: 600;
    font-size: 13px;
  }

  .doc-info p {
    font-size: 13px;
  }

  .doctor:hover::after {
    width: 0;
  }

  .footer p {
    font-size: 10px;
  }
}
