@media screen and (max-width: 40.0rem) {
  .row-reverse {
    display: flex;
    flex-direction: column-reverse;
    background-position: center 50%;
  }
  .carousel-bg1 {
    background-repeat: no-repeat;
    background-image: url(../images/banner/mobile-banner.jpg);
    background-size: cover;
  }

  .carousel-bg2 {
    background-repeat: no-repeat;
    background-image: url(../images/banner/mobile-banner-2.jpg);
    background-size: cover;
  }

  .carousel-bg3 {
    background-repeat: no-repeat;
    background-image: url(../images/banner/mobile-banner-3.jpg);
    background-size: cover;
  }

  .carousel-bg4 {
    background-repeat: no-repeat;
    background-image: url(../images/banner/mobile-banner-4.jpg);
    background-size: cover;
  }

  .carousel-caption {
    color: black !important;
  }

  .car-cap {
    width: 100%;
    font-size: 20pt;
    font-weight: 800;
    color: #fff;
    text-align: center;
    bottom: 100%;
    -webkit-transform: translate(0, 100%);
    -ms-transform: translate(0, 100%);
    transform: translate(0, 700%);
  }

  .car-cap2 {
    width: 100%;
    font-size: 20pt;
    font-weight: 800;
    color: #fff;
    text-align: center;
    bottom: 100%;
    -webkit-transform: translate(0, 100%);
    -ms-transform: translate(0, 100%);
    transform: translate(0, 450%);
  }

  .car-font {
    color: black;
  }

  /* Review part */


  .ws-bg60 {
    background-color: aqua;
  }

  /*Treatment Images*/
  .ws-bg6 {
    height: 350px;
    background-position: center 100%;
  }

  .ws-bg7 {
    height: 350px;
    background-position: center 55%;
  }

  .ws-bg8 {
    height: 350px;
    background-position: center 100%;
  }

  .ws-bg9 {
    height: 350px;
    background-position: center 100%;
  }

  .ws-bg10 {
    height: 350px;
    background-position: center 50%;
  }

  /*Treatment Word*/
  .ws-bg30 {
    height: 350px;
    color: white;
    background-color: #038984;
    background-size: cover;
    background-position: center 100%;
    padding-top: 10%;
  }

  .ws-bg31 {
    height: 350px;
    color: white;
    background-color: #097d78;
    background-size: cover;
    background-position: center 100%;
    padding-top: 10%;
  }

  .ws-bg32 {
    height: 350px;
    color: white;
    background-color: #066847;
    background-size: cover;
    background-position: center 100%;
    padding-top: 10%;
  }

  .ws-bg33 {
    height: 350px;
    color: white;
    background-color: #915525;
    background-size: 150%;
    background-position: center 100%;
    padding-top: 10%;
  }

  /* Review */

  .review1 {
    background-image: url(../images/review.jpg);
    background-size: cover;
    width: 300px;
    height: 300px;
    box-shadow: none !important;
  }

  .greview {
    max-width: 25%;
    max-height: 25%;
    padding-top:10px;
    transform: translate(-152%, -90%);
  }

  .greview2 {
    max-width: 25%;
    max-height: 25%;
    transform: translate(-152%, -90%);
  }
  p10{
    font-size: 12pt;
  }

  .carousel-bg9 {
    min-height: 500px;
    padding-bottom: 50px;
  }

  .quote {
    font-family: 'Raleway', sans-serif;
    line-height: 18pt;
    font-size: 14pt;
    -webkit-transform: translate(0, 1000%);
    transform: translate(0%, -15%);
    color: white;
  }

  .quote2 {
    font-family: 'Raleway', sans-serif;
    line-height: 18pt;
    font-size: 14pt;
    -webkit-transform: translate(0, 1000%);
    transform: translate(0%, -15%);
    color: white;
  }

  .cited {
    padding-top: 20px;
  }

  /*Clinic Images*/
  .ws-bg21 {
    height: 350px;
    background-position: center left 20%;
  }

  .ws-bg22 {
    height: 350px;
    background-position: center 100%;
  }

  .ws-bg23 {
    height: 300px;
    background-position: center 100%;
  }

  .ws-bg24 {
    height: 350px;
    background-position: center 50%;
  }

  .ws-bg25 {
    height: 350px;
    background-position: center 50%;
  }

  .ws-bg26 {
    height: 350px;
    background-position: center 100%;
  }

  .ws-bg27 {
    height: 350px;
    background-position: center 20%;
  }

  .ws-bg28 {
    height: 350px;
    background-position: center 50%;
  }

  .ws-bg29 {
    height: 350px;
    background-position: center 100%;
  }

  .ws-bg30 {
    height: 350px;
    background-position: center 50%;
  }

  .ws-bg31 {
    height: 350px;
    background-position: center 100%;
  }

  /*Contact Us*/
  #side-nav {
    display: none;
  }

  #content-container {
    margin-left: 0px;
  }

  .navbar {
    border-radius-top: 0.2em;
    background-color: #A19487 !important;
    display: block;
    padding: 0px;
  }

  .navbar-header {
    background-color: white;
    margin: 0px;
    padding: 0.5em;
  }

  .nav-item {
    padding-left: 1em;
  }

  .navbar-brand {
    padding: 0.5em;
  }

  .navbar-brand img {
    margin-left: 20px;
  }

  .navbar-toggler {
    float: right;
    margin: 1.2em;
  }

  a.navbar-brand {
    color: white;
  }

  a.nav-link {
    color: white !important;
    font-size: 19px;
    text-transform: uppercase;
  }

  .faq-mobile a.nav-link {
    color: #333 !important;
  }
  .footer-copyright {
    font-size: 12pt;
  }
  /* Patient before after */
  .before, .after {
    position: absolute;
    left: 0;
    font-size: 18px;
    background-color: #ffca2d;
    top: 0;
    color: black;
  }

  .dropdown-item {
    font-size: 19px !important;
    padding: 0.5rem 1rem;
  }

  .dropdown-menu .dropdown-item,
  .dropdown-menu .dropdown-menu .dropdown-item {
    font-size: 19px !important;
    padding-left: 2rem;
  }
}

@media screen and (max-width: 414px) {
  .ws-bg912 {
    background-position: center left 8% !important;
    height: 270px !important;
  }

  .mobile-cover {
    background-size: cover;
    margin-bottom: 5px;
  }

  .mobile-pad {
    padding: 0;
  }
  
  .carousel-caption {
    margin-right: 0 !important;
  }

  .navbar-brand img {
    margin-left: 30px;
  }
  .before, .after {
    position: absolute;
    left: 0;
    font-size: 18px;
    background-color: #ffca2d;
    top: 0;
    color: black;
  }
}

@media screen and (max-width: 375px) {
  .ws-bg912 {
    background-position: center left 8% !important;
    height: 250px !important;
  }

  .navbar-brand img {
    width: 40px;
    padding-bottom: 5px;
  }

  .ws-services-item2 {
    padding-bottom: 1em;
    background-color: #A19487;
  }
  .ws-services-item{
    padding-bottom: 1em;
    background-color: #faf8f4;
  }

  .second-title{
    font-size: 23px;
    text-align: left;
  }
  .third-title{
    font-size: 20px;
  }
  .fourth-title {
  font-size: 15px
  }

  .profile-doctor{
    height: 17vh;
  }
  .doctor-name{
    font-size: 20px;
  }

  .doctor-specialist{
    font-size: 14px;
  }

  .ws-services-item-content{
    padding: 1em;
    padding-top: 0em;
    background-color: #faf8f4;
    text-align: left;
    /* background-color: red;  */
  }
  .ws-services-item2-content{
    padding: 2em;
    padding-top: 0em;
    background-color: #A19487;
    text-align: left;
    /* background-color: red;  */
  }
  .before, .after {
    position: absolute;
    left: 0;
    font-size: 18px;
    background-color: #ffca2d;
    top: 0;
    color: black;
  }
}

/* Tablet version */

@media screen and (min-width: 768px) and (max-width: 1280px) {
  .col-sm-6 {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
  .ws-bg912 {
    background-image: url(../images/covidwt.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center left 5%;
    width: auto;
    height: 300px;
  }
  .navbar-brand img {
    width: 60px;
    padding-bottom: 5px;
  }
  .carousel-caption {
    margin-right: 0 !important;
  }

#referral-span {
  font-weight: bold;
  z-index: 1;
  font-size: 22px;
}

.mobile-cover {
  background-size: cover;
  margin: 5px;
}

.mobile-banner-orthodontic {
  background-repeat: no-repeat;
    background-image: url(../images/banner/orthodontics-banner-mobile.jpg);
    background-size: cover;
}

.mobile-banner-dental-implant {
    background-repeat: no-repeat;
    background-image: url(../images/banner/dental-implant-banner-mobile.jpg);
    background-size: cover;
}

.mobile-banner-endodontic {
  background-repeat: no-repeat;
  background-image: url(../images/banner/endodontics-banner-mobile.jpg);
  background-size: cover;
}

.mobile-banner-periodontic {
  background-repeat: no-repeat;
  background-image: url(../images/banner/periodontics-banner-mobile.jpg);
  background-size: cover;
}
}
.dropdown-menu {
  background-color: #A19487 !important;
  color: white !important;
  border: none;
}
.dropdown-item {
  background-color: #A19487 !important;
  color: white !important;
}
#doctorsSubmenu {
  background-color: #e6ded6 !important; 
}
#doctorsSubmenu .dropdown-item {
  background-color: #e6ded6 !important;
  color: #333 !important; 
}
#gettingBracesSubmenu {
  background-color: #e6ded6 !important; 
}
#gettingBracesSubmenu .dropdown-item {
  background-color: #e6ded6 !important;
  color: #333 !important; 
}
#bracesCareSubmenu {
  background-color: #e6ded6 !important; 
}
#bracesCareSubmenu .dropdown-item {
  background-color: #e6ded6 !important;
  color: #333 !important; 
}
#gallerySubmenu {
  background-color: #e6ded6 !important; 
}
#gallerySubmenu .dropdown-item {
  background-color: #e6ded6 !important;
  color: #333 !important; 
}
#periodonticsDoctorsSubmenu {
  background-color: #e6ded6 !important; 
}

#periodonticsDoctorsSubmenu .dropdown-item {
  background-color: #e6ded6 !important;
  color: #333 !important; 
}
.quote {
  text-align: justify;
  font-family: 'Roboto', sans-serif;
  line-height: 1.8;
  font-size: 11pt;
  -webkit-transform:translate(0, 1000%);
  transform:translate(-4%, -0%);
}

.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid transparent;
  border-bottom: 0.3em solid transparent;
  border-left: 0.3em solid;
  border-right: 0;
  transition: transform 0.2s ease-in-out;
}

.dropdown-toggle.expanded::after {
  transform: rotate(90deg);
}

.dropdown-toggle {
  display: flex;
  align-items: center;
}

.dropdown-toggle::before {
  content: "";
  display: inline-block;
  margin-right: 0.5em;
  vertical-align: 0.255em;
  border-top: 0.3em solid transparent;
  border-bottom: 0.3em solid transparent;
  border-left: 0.3em solid;
  border-right: 0;
  transition: transform 0.2s ease-in-out;
}

.dropdown-toggle::after {
  display: none;
}

.dropdown-toggle.expanded::before {
  transform: rotate(90deg);
}

