/*** Spinner Start ***/
/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}
/*** Spinner End ***/

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  display: flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
  z-index: 99;
}

/*** Button Start ***/
.btn {
  font-weight: 600;
  transition: 0.5s;
}

.btn-square {
  width: 32px;
  height: 32px;
}

.btn-sm-square {
  width: 34px;
  height: 34px;
}

.btn-md-square {
  width: 44px;
  height: 44px;
}

.btn-lg-square {
  width: 56px;
  height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 50%;
}

.btn.btn-primary {
  box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.btn.btn-primary:hover {
  box-shadow: inset 300px 0 0 0 var(--bs-light) !important;
  color: var(--bs-primary) !important;
}

.btn.btn-light {
  box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.btn.btn-light:hover {
  box-shadow: inset 300px 0 0 0 var(--bs-primary);
  color: var(--bs-light) !important;
}

.btn-hover {
  transition: 0.5s;
}

.btn-hover:hover {
  color: var(--bs-secondary) !important;
}

/*** Section Title Start ***/
.section-title {
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

.section-title .sub-style {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  color: var(--bs-primary);
}

.section-title .sub-style::before {
  content: "";
  width: 100px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  margin-top: 8px;
  margin-left: -100px;
  border: 1px solid var(--bs-primary) !important;
}

.section-title .sub-style::after {
  content: "";
  width: 50px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  margin-bottom: 5px;
  margin-left: -50px;
  border: 1px solid var(--bs-primary) !important;
}

.sub-title {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  color: var(--bs-primary);
}

.sub-title::before {
  content: "";
  width: 100px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  margin-top: 8px;
  margin-right: -100px;
  border: 1px solid var(--bs-primary) !important;
}

.sub-title::after {
  content: "";
  width: 50px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  margin-bottom: 8px;
  margin-right: -50px;
  border: 1px solid var(--bs-primary) !important;
}

/*** Topbar Start ***/
.fixed-top .container {
  transition: 0.5s;
}

.topbar {
  padding: 2px 10px 2px 20px;
  background: var(--bs-primary) !important;
}

.topbar a,
.topbar a i {
  transition: 0.5s;
}

.topbar a:hover,
.topbar a i:hover {
  color: var(--bs-secondary) !important;
}

@media (max-width: 576px) {
  .topbar {
    display: none;
  }
}
/*** Topbar End ***/

/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
  font-family: "Open Sans", sans-serif;
  position: relative;
  margin-right: 25px;
  padding: 35px 0;
  color: var(--bs-dark) !important;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  transition: 0.5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
  padding: 20px 0;
  color: var(--dark) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--bs-primary) !important;
}

.navbar-light .navbar-brand img {
  max-height: 50px;
  transition: 0.5s;
}

.sticky-top.navbar-light .navbar-brand img {
  max-height: 45px;
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 600;
  vertical-align: middle;
  margin-left: 8px;
}

@media (min-width: 1200px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    border: 0;
    border-radius: 10px;
    transition: 0.5s;
    opacity: 0;
  }
}

.dropdown .dropdown-menu a:hover {
  background: var(--bs-primary);
  color: var(--bs-white);
}

.navbar .nav-item:hover .dropdown-menu {
  transform: rotateX(0deg);
  visibility: visible;
  background: var(--bs-light) !important;
  transition: 0.5s;
  opacity: 1;
}

@media (max-width: 991.98px) {
  .sticky-top.navbar-light {
    position: relative;
    background: var(--bs-white);
  }

  .navbar.navbar-expand-lg .navbar-toggler {
    padding: 10px 20px;
    border: 1px solid var(--bs-primary);
    color: var(--bs-primary);
  }

  .navbar-light .navbar-collapse {
    margin-top: 15px;
    border-top: 1px solid #dddddd;
  }

  .navbar-light .navbar-nav .nav-link,
  .sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 10px 0;
    margin-left: 0;
    color: var(--bs-dark) !important;
  }

  .navbar-light .navbar-brand img {
    max-height: 45px;
  }
}

@media (min-width: 992px) {
  .navbar-light {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
  }

  .sticky-top.navbar-light {
    position: fixed;
    background: var(--bs-light) !important;
  }

  .navbar-light .navbar-nav .nav-link::before {
    position: absolute;
    content: "";
    width: 0;
    height: 2px;
    bottom: -1px;
    left: 50%;
    background: var(--bs-primary);
    transition: 0.5s;
  }

  .navbar-light .navbar-nav .nav-link:hover::before,
  .navbar-light .navbar-nav .nav-link.active::before {
    width: calc(100% - 2px);
    left: 1px;
  }

  .navbar-light .navbar-nav .nav-link.nav-contact::before {
    display: none;
  }
}
/*** Carousel Hero Header Start ***/
.header-carousel {
  position: relative;
}

.header-carousel .owl-nav .owl-prev {
  position: absolute;
  width: 70px;
  height: 70px;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--bs-primary);
  color: var(--bs-white);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
}

.header-carousel .owl-nav .owl-next {
  position: absolute;
  width: 70px;
  height: 70px;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--bs-primary);
  color: var(--bs-white);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
  transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
  box-shadow: inset 150px 0 0 0 var(--bs-light) !important;
  color: var(--bs-primary) !important;
}

@media (max-width: 576px) {
  .header-carousel .owl-nav .owl-prev,
  .header-carousel .owl-nav .owl-next {
    top: 630px;
    transition: 0.5s;
  }

  .header-carousel
    .header-carousel-item
    .carousel-caption
    .carousel-caption-content {
    width: 95% !important;
  }
}

.header-carousel .header-carousel-item,
.header-carousel .header-carousel-item img {
  position: relative;
  width: 100%;
  height: 700px;
  margin-top: 95px;
  display: block;
  object-fit: cover;
  transition: 0.5s;
}

@media (max-width: 992px) {
  .header-carousel .header-carousel-item,
  .header-carousel .header-carousel-item img {
    margin-top: 0;
    transition: 0.5s;
  }
}

@media (min-width: 992px) {
  .header-carousel .owl-nav .owl-prev,
  .header-carousel .owl-nav .owl-next {
    margin-top: 50px;
  }
}

.header-carousel .header-carousel-item .carousel-caption {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  padding: 100px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

.header-carousel
  .header-carousel-item
  .carousel-caption
  .carousel-caption-content {
  position: relative;
  width: 75%;
}
/*** Carousel Hero Header End ***/

/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../bb_assets/bg/bg-1.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 160px 0 60px 0;
}

.bg-breadcrumb .breadcrumb-item a {
  color: var(--bs-white) !important;
}
/*** Single Page Hero Header End ***/

/*** Service Start ***/
/* ================= ORIGINAL SERVICE CSS ================= */

.service .service-item {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.2);
}

.service .service-item .service-img {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service .service-item .service-img img {
  transition: 0.5s;
}

.service .service-item .service-img::before {
  width: 100%;
  height: 0;
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  transition: 0.5s;
  z-index: 5;
}

.service .service-item:hover .service-img::before {
  height: 100%;
  background: rgba(21, 185, 217, 0.3);
}

.service .service-item .service-img:hover img {
  transform: scale(1.3);
}

.service .service-item .service-content {
  position: relative;
  z-index: 2;
}

.service .service-item .service-content::before {
  width: 100%;
  height: 8px;
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background: rgba(21, 185, 217, 0.5);
  transition: 0.5s;
  z-index: 3;
}

.service .service-item:hover .service-content::before {
  background: rgba(21, 185, 217, 0.5);
  height: 100%;
}

.service .service-item .service-content .service-content-inner {
  transition: 0.5s;
}

.service .service-item:hover .service-content .service-content-inner {
  position: relative;
  color: var(--bs-white) !important;
  z-index: 9;
}

.service .service-item:hover .service-content .service-content-inner h5 {
  color: var(--bs-secondary);
}

.service-text-item {
  background: #ffffff;
  border: 1px solid #e9ecef;
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 500;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.service-text-item:hover {
  background: var(--bs-primary);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}


/* ================= CARD HEIGHT FIX (ADDED) ================= */


.service .service-item {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service .service-item .service-img {
  height: 200px;
}

.service .service-item .service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service .service-item .service-content {
  flex: 1;
  display: flex;
}

.service .service-item .service-content .service-content-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service .service-item .service-content .service-content-inner p {
  flex-grow: 1;
}


/*** Service End ***/

/*** About Start ***/
.about .about-img {
  position: relative;
  border-radius: 12px;
  /* overflow: hidden; */
}

/* Main image */
.about .about-img > img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 12px;
}

/* Circular overlay image */
.about .about-img .about-img-inner {
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 10px solid #fff;
  background: #fff;
}

.about .about-img .about-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Vertical text */
.about .about-img .about-experience {
  position: absolute;
  top: 50%;
  left: -90px;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--bs-primary);
  text-transform: uppercase;
}

/* Responsive fixes */
@media (max-width: 991px) {
  .about .about-img > img {
    height: 420px;
  }

  .about .about-img .about-img-inner {
    width: 180px;
    height: 180px;
    bottom: -30px;
    left: -30px;
  }

  .about .about-img .about-experience {
    display: none;
  }
}

/*** About End ***/

/*** Feature Start ***/
.feature-item {
  background: #f8f9fa;
  border-radius: 16px;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.feature-img img {
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.feature-icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/*** Feature End ***/



/* --- Appointment Section Styling --- */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* --- Appointment Section --- */
.appointment {
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url(../img/carousel-2.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover; 
  background-attachment: fixed;
  padding: 60px 0 !important;
}

.appointment .appointment-form {
  background: rgba(239, 162, 134, 0.3); 
  position: relative; 
  padding: 20px;
  border-radius: 10px;
}

/* --- Brain Logo: Desktop par corner mein --- */
.video {
  position: absolute; 
  z-index: 10;
  bottom: 10px;      
  right: -50px; 
  width: 220px;      
}

/* --- IMPORTANT MOBILE FIX (Screenshot 157 & 158) --- */
@media (max-width: 991px) {
    /* Brain logo ko mobile par bahar jane se rokne ke liye */
    .video {
        position: relative !important; 
        right: 0 !important;
        margin: 20px auto 0 auto !important; /* Mobile par niche center mein */
        width: 180px;
        bottom: 0;
        left: 0 !important;
    }

    /* Consultation Mode fix (Screenshot 157) */
    .appointment-form .d-flex.justify-content-between {
        flex-direction: column !important; /* Ek ke niche ek */
        align-items: flex-start !important;
        gap: 10px;
        height: auto !important;
        padding: 10px !important;
    }
    
    .appointment-form .d-flex.gap-3 {
        flex-wrap: wrap; /* Radio buttons ko wrap karega taaki bahar na jayein */
        gap: 10px !important;
    }
}

.video img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Play Button Styling --- */
.video .btn-play {
  position: absolute;
  z-index: 15;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 30px;
  height: 40px;
  background: #efa286; 
  border-radius: 50%;
  border: none;
}

.video .btn-play span {
  display: block;
  width: 0;
  height: 0;
  border-left: 18px solid white;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 10px;
}

.video .btn-play:before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 70px; 
  height: 70px;
  background: #efa286;
  border-radius: 50%;
  animation: pulse-border 1500ms ease-out infinite;
}

@keyframes pulse-border {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* --- Form Color Fixes (Black Text) --- */
.appointment-form .form-control::placeholder {
    color: #000000 !important; 
    opacity: 1; 
}

.appointment-form .form-select,
.appointment-form .form-control,
.appointment-form .text-dark, 
.appointment-form .form-check-label,
.appointment-form span {
    color: #000000 !important; 
    opacity: 1 !important;
}

.form-check-input {
    border: 1px solid #000 !important;
}
/* appointment end */

/* --- Team Start --- */
.team .team-item .team-img {
  position: relative;
  overflow: hidden;
}

.team .team-item .team-img::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  transition: 0.5s;
}

.team .team-item .team-img .team-icon {
  position: absolute;
  bottom: -125px;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.5s;
}

.team .team-item .team-img:hover .team-icon {
  margin-bottom: 145px;
}

.team .team-item:hover .team-img::before {
  background: rgba(21, 185, 217, 0.3);
}

.team .team-item .team-content {
  color: var(--bs-primary);
  transition: 0.5s;
}

.team .team-item .team-content h5 {
  color: var(--bs-secondary);
  transition: 0.5s;
}

.team .team-item:hover .team-content h5 {
  color: var(--bs-dark);
}

.team .team-item:hover .team-content {
  background: var(--bs-primary);
  color: var(--bs-white);
}
/*** Team End ***/

/*** testimonial Start ***/

.testimonial {
  background: linear-gradient(rgba(21, 185, 217, 0.9), rgba(21, 185, 217, 0.9)),
    url(../img/carousel-1.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.testimonial .testimonial-item .testimonial-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 10px;
  background: transparent;
}

.testimonial .testimonial-item .testimonial-inner .testimonial-inner-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 5px solid var(--bs-white);
  overflow: hidden;
}
.testimonial-inner-img img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  object-position: top;
}

.testimonial .testimonial-carousel.owl-carousel {
  position: relative;
}

.testimonial .testimonial-carousel .owl-nav .owl-prev {
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--bs-light);
  color: var(--bs-primary);
  transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-nav .owl-next {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--bs-light);
  color: var(--bs-primary);
  transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial .testimonial-carousel .owl-nav .owl-next:hover {
  box-shadow: inset 100px 0 0 0 var(--bs-primary) !important;
  color: var(--bs-white) !important;
}

@media (max-width: 900px) {
  .testimonial .testimonial-carousel .owl-nav .owl-prev {
    margin-top: -190px;
    margin-left: 40px;
  }

  .testimonial .testimonial-carousel .owl-nav .owl-next {
    margin-top: -190px;
    margin-right: 40px;
  }
}

.testimonial-carousel .owl-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.testimonial-carousel .owl-dots .owl-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 15px;
  border: 1px solid var(--bs-white);
  background: transparent;
  transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
  width: 20px;
  height: 20px;
  background: var(--bs-secondary) !important;
}

.testimonial-carousel .owl-dots .owl-dot span {
  position: relative;
  margin-top: 50%;
  margin-left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bs-white);
}

.testimonial .testimonial-carousel .testimonial-item .testimonial-inner p.fs-7 {
  transition: 0.5s;
}

@media (min-width: 900px) {
  .testimonial
    .testimonial-carousel
    .testimonial-item
    .testimonial-inner
    p.fs-7 {
    font-size: 20px;
  }
}

/* Testimonial Section Title Start */
.testimonial .section-title {
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

.testimonial .section-title .sub-style {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  color: var(--bs-primary);
}

.testimonial .section-title .sub-style::before {
  content: "";
  width: 100px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  margin-top: 8px;
  margin-left: -100px;
  border: 1px solid var(--bs-white) !important;
}

.testimonial .section-title .sub-style::after {
  content: "";
  width: 50px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  margin-bottom: 5px;
  margin-left: -50px;
  border: 1px solid var(--bs-white) !important;
}

.testimonial .section-title .sub-title {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  color: var(--bs-primary);
}

.testimonial .section-title .sub-title::before {
  content: "";
  width: 100px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  margin-top: 8px;
  margin-right: -100px;
  border: 1px solid var(--bs-white) !important;
}

.testimonial .section-title .sub-title::after {
  content: "";
  width: 50px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  margin-bottom: 8px;
  margin-right: -50px;
  border: 1px solid var(--bs-white) !important;
}

/*** Testimonial End ***/

/*** Blog Start ***/
.blog .blog-item .blog-img {
  position: relative;
  overflow: hidden;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}

.blog .blog-item .blog-img::after {
  content: "";
  position: absolute;
  top: 0;    
  left: 0;
  width: 100%;
  height: 100%;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  transition: 0.5s;
}  

.blog .blog-item .blog-img img {
  transition: 0.5s;
}


.blog .blog-item .blog-img:hover img {
  transform: scale(1.3);
}

.blog .blog-item:hover .blog-img::after {
  background: rgba(21, 185, 217, 0.5);
}

.blog .blog-item .blog-centent {
  background: var(--bs-light);
  border: 1px solid var(--bs-primary);
  border-top: 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
/*** Blog End ***/

/*** Contact Start ***/
.contact {
  background: linear-gradient(rgba(21, 185, 217, 0.9), rgba(21, 185, 217, 0.9)),
    url(../img/carousel-1.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.contact .contact-form .btn.btn-light {
  box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.contact .contact-form .btn.btn-light:hover {
  box-shadow: inset 600px 0 0 0 var(--bs-primary) !important;
  color: var(--bs-white) !important;
}

.contact .contact-form .form-floating input,
.contact .contact-form .form-floating textarea,
.contact .contact-form .form-floating label {
  color: var(--bs-light);
}

/* Testimonial Section Title Start */
.contact .section-title {
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

.contact .section-title .sub-style {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  color: var(--bs-primary);
}

.contact .section-title .sub-style::before {
  content: "";
  width: 100px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  margin-top: 8px;
  margin-left: -100px;
  border: 1px solid var(--bs-white) !important;
}

.contact .section-title .sub-style::after {
  content: "";
  width: 50px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  margin-bottom: 5px;
  margin-left: -50px;
  border: 1px solid var(--bs-white) !important;
}

.contact .section-title .sub-title {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  color: var(--bs-primary);
}

.contact .section-title .sub-title::before {
  content: "";
  width: 100px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  margin-top: 8px;
  margin-right: -100px;
  border: 1px solid var(--bs-white) !important;
}

.contact .section-title .sub-title::after {
  content: "";
  width: 50px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  margin-bottom: 8px;
  margin-right: -50px;
  border: 1px solid var(--bs-white) !important;
}
/*** Contact End ***/

/*** Footer Start ***/
.footer-logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.footer-logo-container img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  object-position: center;
}
.footer {
  background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
    url(../img/carousel-2.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.footer .footer-item a {
  line-height: 35px;
  color: var(--bs-body);
  transition: 0.5s;
}

.footer .footer-item p {
  line-height: 35px;
}

.footer .footer-item a:hover {
  letter-spacing: 2px;
  color: var(--bs-primary);
}

/*** Footer End ***/

/*** copyright Start ***/
.copyright {
  background: var(--bs-dark) !important;
}
/*** copyright end ***/


/* tele start */
/* --- Background & Floating Animations --- */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* --- Main Card --- */
.tele-rehab .tele-card {
    background:#FFE4E1;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 40px !important;
    overflow: hidden;
    transition: all 0.5s ease;
    width: 100%;
}

/* --- Image & Video Section (Desktop & Global) --- */
.therapy-preview {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 5px solid #fff; 
    outline: 2px solid #3b82f6; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    width: 100%; 
    display: block;
    margin-bottom: 15px;
    background-color: #f8fafc;
    /* animation: float 4s ease-in-out infinite; */
    
    /* Desktop Height */
    height: 450px; 
}

/* --- Responsive Fix for Mobile & Console --- */
@media (max-width: 768px) {
    .therapy-preview {
        height: 250px !important; 
        border-width: 3px;
        outline-width: 1.5px;
    }
    
    .tele-rehab .tele-card {
        padding: 1.5rem !important; 
    }

    .tele-rehab .col-md-6 {
        margin-bottom: 10px; 
    }
}

/* --- Updated Content Settings (Sir nahi kategi) --- */
.therapy-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    /* Isse image upar se 10% niche focus karegi, face barabar dikhega */
    object-position: top center; 
    display: block;
    border: none;
}

.therapy-preview iframe {
    width: 100%;
    height: 100%;
    /* Video ke liye default cover theek rehta hai */
    object-fit: cover; 
    display: block;
    border: none;
}

/* Hover effects */
.therapy-preview:hover {
    outline: 3.5px solid #3b82f6;
    outline-offset: -1px;
    transform: scale(1.02);
}

/* Live Tag Styling */
.live-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef4444;
    color: white;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    z-index: 10;
}

/* WhatsApp Button */
.tele-btn {
    position: relative;
    overflow: hidden;
    background: #25d366 !important;
    color: white !important;
    padding: 14px 30px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.2);
}
/* tele end */