.home-slider {
  background-color: #511D43;
}
.home-slider .carousel-caption {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 1;
  text-align: left;
  margin: 180px 0 320px;
  opacity: 0;
}
.home-slider .carousel-caption h1 {
  font-size: 4.5rem;
  line-height: 5.8rem;
  margin: 0 0 15px;
  color: #fff;
}
.home-slider .carousel-caption h1 i {
  font-style: normal;
  font-size: 4rem;
  font-weight: 400;
}
.home-slider .carousel-caption p {
  font-size: 1.8rem;
  line-height: 2.8rem;
}
.home-slider .container {
  position: relative;
  z-index: 9;
}
.home-slider .carousel-item {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}
.home-slider .carousel-item.active .carousel-caption {
  opacity: 1;
}
.home-slider .carousel-item.active .carousel-caption h1, .home-slider .carousel-item.active .carousel-caption p, .home-slider .carousel-item.active .carousel-caption .banner-btn, .home-slider .carousel-item.active .carousel-caption .notice-block, .home-slider .carousel-item.active .carousel-caption .bullet-design {
  -webkit-animation-name: fadeInUp;
          animation-name: fadeInUp;
}
.home-slider .carousel-item.active .home-banner-modal {
  -webkit-animation-name: fadeInRight;
          animation-name: fadeInRight;
}
.home-slider .home-banner-modal {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: unset;
  background-position: bottom right;
  background-size: auto;
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 99;
  display: inline-block;
}
.home-slider .mob-banner {
  background-size: 0;
}
.home-slider .home-cta {
  margin: 40px 0 0;
}
.home-slider .home-cta .banner-btn {
  font-size: 18px;
}

.home-banner-pattern {
  bottom: 0;
  pointer-events: none;
}

.about-bg {
  position: relative;
  margin-top: -200px;
  z-index: 1;
}

.flex-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  gap: 10px;
}

@-webkit-keyframes fadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
            transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
            transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
}
@-webkit-keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
            transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
            transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
}
@-webkit-keyframes fadeInRight {
  from {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
            transform: translate3d(100%, 0, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
            transform: translate3d(100%, 0, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
}
@-webkit-keyframes fadeInLeft {
  from {
    opacity: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
            transform: translate3d(-100%, 0, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
            transform: translate3d(-100%, 0, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
}
.pad-80 {
  padding: 80px 0;
}

.service-wrap {
  z-index: 1;
  margin-top: 30px;
  min-height: calc(100% - 30px);
  margin: 30px 15px 0;
}
.service-wrap::before {
  position: absolute;
  bottom: 0;
  right: 0;
  content: "";
  width: 100%;
  background-color: #fff;
  height: 95%;
  z-index: -1;
}
.service-wrap::after {
  position: absolute;
  bottom: 0;
  right: 0;
  content: "";
  width: 100%;
  background-color: #511D43;
  height: 0;
  z-index: -1;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.service-wrap .service-img {
  position: relative;
  right: 25px;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.service-wrap .service-img img {
  border-radius: 0 30px 0 0;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.service-wrap .service-details {
  padding: 30px 30px;
  background-color: #fbfbfb;
}
.service-wrap .service-details a {
  font-size: 1.4rem;
  line-height: 2.4rem;
}
.service-wrap:hover .service-img {
  right: 0;
  width: 100%;
}
.service-wrap:hover .service-img img {
  border-radius: 5px 5px 0 0;
}
.service-wrap:hover::after {
  height: 95%;
}
.service-wrap:hover .service-details {
  background-color: #511D43;
}
.service-wrap:hover .service-details .title-text, .service-wrap:hover .service-details p {
  color: #fff;
}

.meet-doctor-bg {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  z-index: 1;
}
.meet-doctor-bg::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.cta-inner {
  border-radius: 30px 0;
  background: #fff;
  -webkit-box-shadow: 0px 8px 20px -3px rgba(0, 0, 0, 0.08);
  box-shadow: 0px 8px 20px -3px rgba(0, 0, 0, 0.08);
  padding: 50px;
  margin-top: 60px;
  z-index: 1;
  position: relative;
}

.cta-inner h3 {
  font-size: 2.2rem;
  line-height: 3.2rem;
}

.cta-bg {
  position: relative;
}

.cta-bg::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 55%;
  height: 90%;
  background-image: url(../images/dr-girish.webp);
  background-position: top left;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 30px;
  z-index: 0;
}

/******* Service Section ********/
.service-single {
  overflow: hidden;
  margin: 30px 0 0;
  border-radius: 6px;
}

.service-single::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  -webkit-transform: translateY(-100%);
  transform: translateY(-100%);
  z-index: 1;
  -webkit-transition: 0.3s all ease-in-out;
  transition: 0.3s all ease-in-out;
}

.service-single:hover::after {
  -webkit-transform: translateY(0%);
  transform: translateY(0%);
}

.service-single .service-single-head {
  display: block;
  background-color: rgba(255, 255, 255, 0.8);
  font-size: 2rem;
  line-height: 3rem;
  padding: 10px 15px;
  position: absolute;
  width: 100%;
  bottom: 0;
  -webkit-transition: 0.3s all ease-in-out;
  transition: 0.3s all ease-in-out;
  z-index: 2;
}

.service-inner-block {
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 2;
}

.service-single:hover .service-single-head {
  bottom: 100%;
  background-color: transparent;
}

.service-single:hover .service-single-para {
  -webkit-transform: translateY(0%);
  transform: translateY(0%);
}

.service-single-para {
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  -webkit-transition: 0.3s all ease-in-out;
  transition: 0.3s all ease-in-out;
  padding: 0px 15px 30px;
}

.service-single-para p {
  margin: 0;
  font-size: 15px;
  line-height: 26px;
}

/*service box desktop end*/
.testimonial-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.testimonial-wrap .testimonial-img {
  width: 88px;
  height: 88px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border-radius: 50%;
  border: 2px dashed #511D43;
  padding: 5px;
  position: relative;
}
.testimonial-wrap .testimonial-img::before {
  position: absolute;
  left: 0px;
  bottom: 0;
  content: "\f10d";
  font-size: 4.55rem;
  line-height: 1rem;
  color: #511D43;
  font-family: "Font Awesome 6 Pro";
  font-weight: 700;
}
.testimonial-wrap .testimonial-img img {
  border-radius: 50%;
}
.testimonial-wrap .testimonial-details .testimonial-name {
  font-size: 1.8rem;
  line-height: 2.8rem;
  font-weight: 800;
}

.owl-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.owl-nav .owl-prev,
.owl-nav .owl-next {
  margin: 0 2px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 0;
  border: none;
  cursor: pointer;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
  background-image: none !important;
  position: relative;
  z-index: 1;
}
.owl-nav .owl-prev::before,
.owl-nav .owl-next::before {
  position: absolute;
  content: "";
  top: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
  background-color: #d93262;
  opacity: 0.2;
  z-index: -1;
  margin: auto 0;
  border-radius: 50%;
}

.owl-nav .owl-prev::before {
  left: -12px;
}

.owl-nav .owl-next::before {
  right: -12px;
}

.owl-nav .owl-prev i,
.owl-nav .owl-next i {
  color: #d93262;
  font-size: 2.8rem;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

.owl-custom-nav .owl-prev,
.owl-custom-nav .owl-next {
  background-image: none;
}

.testimonial-bg:after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 520px;
  height: 100%;
  background-image: url(../images/review-pattern.svg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top right;
  pointer-events: none;
}

.faq-block .accordion-item {
  border: none;
  background-color: transparent;
  margin: 0 0 10px;
}
.faq-block .accordion-button {
  color: #2C2C2C;
  font-size: 1.8rem;
  line-height: 2.8rem;
  font-weight: 600;
  background-color: #fbfbfb;
  padding: 10px 20px;
  border: none;
  position: relative;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}
.faq-block .accordion-button:after {
  position: absolute;
  content: "\f062";
  right: 10px;
  font-family: "Font Awesome 6 Pro";
  -webkit-transform-origin: center center;
          transform-origin: center center;
  -webkit-transition: 0.3s all ease-in-out;
  transition: 0.3s all ease-in-out;
  font-weight: 600;
  display: table;
  background-image: none !important;
  color: #2C2C2C;
}
.faq-block .accordion-button:not(.collapsed) {
  color: #fff;
  background-color: #511D43;
  -webkit-box-shadow: none;
          box-shadow: none;
  -webkit-transition: 0.3s all ease-in-out;
  transition: 0.3s all ease-in-out;
}
.faq-block .accordion-button:not(.collapsed):after {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
  color: #fff;
}
.faq-block .accordion-button:hover {
  color: #fff;
  background-color: #2C2C2C;
}
.faq-block .accordion-button:hover:after {
  color: #fff;
}
.faq-block .accordion-body {
  padding: 20px;
  background-color: #fbfbfb;
}

.contact-form {
  -webkit-box-shadow: 0px 3px 30px rgba(0, 0, 0, 0.05);
          box-shadow: 0px 3px 30px rgba(0, 0, 0, 0.05);
  padding: 30px;
  border-radius: 5px;
}

.contact-block {
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  z-index: 1;
}

@media (max-width: 1700px) {
  .home-slider .home-banner-modal {
    background-position: top right;
    background-size: contain;
  }
}
@media (max-width: 1500px) {
  .home-slider .carousel-caption {
    margin: 100px 0 240px;
  }
  .about-bg {
    margin-top: -90px;
  }
}
@media (max-width: 1199px) {
  .home-slider .mob-banner {
    background-size: cover;
    background-position: center top;
  }
  .home-slider .mob-banner::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #511D43;
    opacity: 0.8;
  }
  .home-slider .carousel-item {
    background-size: 0;
  }
  .home-banner-pattern {
    z-index: 1;
  }
  .about-bg .section-divider {
    margin: 0;
  }
  .about-bg {
    margin-top: -20px;
  }
}
@media (max-width: 1024px) {
  .home-slider .carousel-caption {
    margin: 140px 0px 250px;
  }
  .home-slider .carousel-item::before {
    position: absolute;
    content: "";
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: rgba(255, 255, 255, 0.4);
  }
}
@media (max-width: 1024px) {
  /*service box */
  .service-inner-block,
  .service-single-head {
    position: static !important;
  }
  .service-single {
    background-color: #fff;
    min-height: calc(100% - 30px);
  }
  .service-single::after {
    display: none;
  }
  .service-single-head {
    background-color: #4d0011 !important;
    color: #fff;
  }
  .service-single-para {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    padding-top: 10px;
  }
  .service-single-para p,
  .service-single a {
    color: #111 !important;
  }
  .service-single-para .btn-main {
    color: #fff !important;
  }
  .outer-border:hover::before {
    width: 101%;
    height: 101%;
  }
  /*service box end*/
  .about-bg {
    margin-top: 0px;
  }
}
@media (max-width: 990px) {
  .cta-bg {
    padding-top: 360px;
  }
  .cta-bg::before {
    height: 360px;
    width: 100%;
  }
  .cta-bg .cta-inner {
    margin: 0;
    padding: 40px;
  }
  .home-slider .carousel-item::before {
    background: rgba(255, 255, 255, 0.7);
  }
}
@media (max-width: 767px) {
  .pad-80 {
    padding: 40px 0;
  }
  .home-slider .carousel-caption {
    margin: 30px 0 80px;
  }
  .home-slider .carousel-caption .home-cta {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
  }
  .home-slider .carousel-caption .home-cta .btn-main {
    text-align: left;
  }
  .home-slider .carousel-caption h1 {
    font-size: 4rem;
    line-height: 5rem;
  }
  .home-slider .carousel-caption h1 i {
    font-size: 3rem;
    line-height: 4.2rem;
  }
  .home-slider .carousel-item {
    background-size: 0;
  }
  .home-slider .mob-banner {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: unset;
  }
  .service-wrap .service-img {
    right: 0;
  }
}
/****** Gallery Section ********/
.gallery-item {
  margin: 0 0 30px;
}
.gallery-item a {
  text-decoration: underline;
}

.img-wrap {
  position: relative;
  z-index: 1;
}

.img-wrap::after,
.img-wrap::before {
  position: absolute;
  content: "";
  top: -5px;
  left: -5px;
  width: 60px;
  height: 60px;
  border: 2px solid #511D43;
  z-index: -1;
  border-radius: 5px;
}

.img-wrap::after {
  right: -5px;
  bottom: -5px;
  left: auto;
  top: auto;
}

.img-wrap .inner img {
  border: 5px solid #fff;
}

.counter-single {
  border-radius: 10px;
  min-height: calc(100% - 30px);
  margin: 30px 0 0;
  -webkit-box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.05);
          box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.05);
}
.counter-single p {
  color: #511D43;
}

.counter-single .counter-head {
  font-size: 3.2rem;
  line-height: 5.2rem;
  font-weight: 800;
}

.counter-value::after {
  content: attr(data-count-symbol);
}

.blog-single {
  margin: 30px 0 0;
}

.blog-single p,
.blog-single a {
  font-size: 14px;
  line-height: 24px;
}

.blog-single img {
  border-radius: 20px;
}

.blog-single .blog-inner {
  background-color: #fff;
  border-radius: 20px;
  padding: 20px;
  margin: -40px 20px 0;
  z-index: 9;
  position: relative;
  -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
  -webkit-transition: 0.3s all ease-in-out;
  transition: 0.3s all ease-in-out;
}

.blog-single .blog-inner .blog-single-head {
  font-size: 2rem;
  line-height: 3rem;
  margin: 0 0 10px;
}

.blog-single:hover .blog-inner {
  -webkit-transform: translateY(-5px);
  transform: translateY(-5px);
}