.about,
.green-box,
.doctorprofile,
.accorditon,
.contact {
  position: relative;
  /* overflow: hidden; */
}
.contact {
  overflow: hidden;
}
.about::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background-image: url(../image/effect/effect1.webp);
  background-size: contain;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.green-box::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  background-image: url(../image/effect/effect2.webp);
  background-repeat: no-repeat;
  background-size: contain;
  width: 70px;
  height: 70px;
  opacity: 0.5;
  transform: translateX(-50%);
}
.doctorprofile::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background-image: url(../image/effect/effect3.webp);
  background-size: contain;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.effect4 {
  width: 50%;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}
.effect5 {
  width: 100%;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}
@media screen and (max-width: 1200px) {
  .about::after,
  .green-box::after,
  .doctorprofile::after {
    display: none;
  }
}
@media screen and (max-width: 1500px) {
  .testi-item {
    flex-direction: column;
  }
  .testi-text p,
  .testi-text h3 {
    text-align: center;
  }
  .gallery1img {
    max-width: 100%;
    height: auto;
  }
}
@media screen and (max-width: 990px) {
  br {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .title h1,
  .title h2 {
    text-align: center;
  }
  .btn-mrg {
    margin: 0 auto;
  }
  .awardstitle h2,
  .awardstitle h3,
  .awardstitle h4 {
    text-align: center;
  }
  .modal-content {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .arrpngs {
    display: none !important;
  }
  .benefitsitem p {
    display: block;
  }
  .grid3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: space-between;
    gap: 100px;
    align-items: top;
  }
  .awardssilder p {
    display: none;
  }
  .awardssilder .active p {
    display: block;
  }
  .banner-title {
    line-height: 60px;
  }
  .home_page_form{
    width: 80%;
    position: initial;
  }
}
@media screen and (max-width: 767px) {
  .banner-title {
    font-size: 50px;
  }
  .banner-subtitle {
    font-size: 18px;
  }
  .title h1,
  .title h2 {
    font-size: 28px;
  }
  .navbar-nav {
    gap: 10px;
  }
  .nav-item,
  .nav-item .primary-btn {
    width: 100% !important;
    text-align: end;
  }
  .green-text {
    font-size: 22px;
  }
  .awardstitle h2 {
    font-size: 20px;
  }
  .awardstitle h3 {
    font-size: 18px;
  }
  .awardstitle h4 {
    font-size: 16px;
  }
  .call2-title h2 {
    font-size: 35px;
  }
  .grid3 {
    grid-template-columns: 1fr;
    justify-content: center;
  }
  .whiteimg {
    display: block;
    margin: auto;
  }
  .footertext {
    text-align: center;
  }
  .grid3 {
    gap: 25px;
  }
  .footertitle {
    margin: auto;
    text-align: center;
  }
  .footertitle::after {
    content: "";
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 4px;
    background-color: var(--white);
    border-radius: 25px;
  }
  .footer-flex {
    justify-content: center;
  }
  .calltext {
    text-align: center;
  }
  .service-text1 {
    width: 90%;
    height: auto;
    padding: 15px 0px;
  }
  .logo {
    width: 100px;
    height: auto;
  }
  .home_page_form{
    margin-top: 50px !important;
  }
}
@media screen and (max-width: 600px) {
  .margintop {
    margin: 50px 0px;
  }
  .green-box {
    margin-top: 35px;
  }
  .greenbg {
    background-color: #f6ffe9;
    padding: 50px 0px;
    margin: 15px 0px;
  }
  .benefitsilder .owl-stage .owl-item {
    border-right: none;
  }
  .galleryflex {
    display: flex;

    flex-wrap: wrap;
    gap: 20px;
  }
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
  .line {
    display: none;
  }
  .container {
    padding: 0px 10px;
  }
  .banner-title {
    font-size: 35px;
    line-height: 25px;
  }
  .banner-subtitle {
    font-size: 16px;
  }
}
