/********** Local Fonts Definition **********/
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/opensans-400.ttf") format("truetype");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/opensans-500.ttf") format("truetype");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/roboto-500.ttf") format("truetype");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/roboto-700.ttf") format("truetype");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/roboto-900.ttf") format("truetype");
}

/********** Template CSS **********/
body {
  color: #757576 !important;
}

:root {
  /* --primary: #0463FA; */
  --primary: #e83946;
  --light: #eff5ff;
  --dark: #1b2c51;
}

.fw-medium {
  font-weight: 500 !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-black {
  font-weight: 900 !important;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 1030;
}

/*** Spinner ***/
#spinner {
  display: none !important;
}

/*** Button ***/
.btn {
  font-weight: 500;
  transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-secondary {
  color: #ffffff;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
  margin-right: 30px;
  padding: 25px 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--primary);
}

.csignper {
  position: relative;
}

.csignper::after {
  position: absolute;
  content: "%";
  font-size: 2rem;
  color: #fff;
  margin-left: 5px;
}

.csignpl {
  position: relative;
}

.csignpl::after {
  position: absolute;
  content: "+";
  font-size: 2rem;
  color: #fff;
  margin-left: 5px;
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar .navbar-nav {
    border-top: 1px solid #eeeeee;
  }

  .navbar .navbar-brand {
    height: 60px !important;
    padding-left: 15px !important;
    padding-right: 0 !important;
  }

  .navbar .navbar-brand img {
    max-height: 45px !important;
    width: auto !important;
  }

  .navbar-toggler {
    margin-right: 15px !important;
    padding: 4px 8px !important;
    font-size: 1.1rem !important;
  }

  .search-trigger-btn {
    margin-right: 10px !important;
  }
}

.navbar .navbar-brand,
.navbar a.btn {
  height: 75px;
}

.navbar .navbar-nav .nav-link {
  color: var(--dark);
  font-weight: 500;
}

.navbar.sticky-top {
  top: -100px;
  transition: 0.5s;
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header ***/
.header-carousel .owl-carousel-text {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 3rem;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.header-carousel .owl-nav {
  position: absolute;
  width: 200px;
  height: 45px;
  /* bottom: 30px; */
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: transparent;
  border: 1px solid #ffffff;
  border-radius: 45px;
  font-size: 22px;
  transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.header-carousel .owl-dots {
  position: absolute;
  height: 45px;
  /* bottom: 30px; */
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 0 5px;
  width: 15px;
  height: 15px;
  background: transparent;
  border: 1px solid #ffffff;
  border-radius: 15px;
  transition: 0.5s;
}

.header-carousel .owl-dot::after {
  position: absolute;
  content: "";
  width: 5px;
  height: 5px;
  top: 4px;
  left: 4px;
  background: #ffffff;
  border-radius: 5px;
}

.header-carousel .owl-dot.active {
  background: var(--primary);
  border-color: var(--primary);
}

.page-header {
  background: url(../img/header-page.jpg) top center no-repeat;
  background-size: cover;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
}

/*** Service ***/
/* Custom 5-Column Grid System for Services */
@media (min-width: 1200px) {
  .col-custom-5 {
    flex: 0 0 20% !important;
    max-width: 20% !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .col-custom-5 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .col-custom-5 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}

@media (max-width: 767px) {
  .col-custom-5 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .owl-nav {
    display: none !important;
  }

  /* .navbar {
    flex-wrap: nowrap !important;
  } */
}

.service-item {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(232, 57, 70, 0.18);
  /* Premium, highly discernible clinical brand-color border */
  border-radius: 20px !important;
  padding: 1.8rem 1.2rem !important;
  /* Elegant compact padding to fit perfectly in 5 columns */
  box-shadow: 0 10px 30px rgba(27, 44, 81, 0.05);
  /* Beautiful soft shadow making boxes pop */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
}

/* Premium Top Gradient Accent Bar that slides in on hover */
.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, #ff6b76 100%);
  transition: transform 0.4s ease;
  transform: scaleX(0);
  transform-origin: left;
  z-index: 2;
}

.service-item:hover::before {
  transform: scaleX(1);
}

/* Soft elegant glow overlay on hover */
.service-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(232, 57, 70, 0.03) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-item:hover::after {
  opacity: 1;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow:
    0 20px 40px rgba(232, 57, 70, 0.08),
    0 5px 15px rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(232, 57, 70, 0.3) !important;
}

.service-img-wrapper {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid #fff0f2;
  /* Beautiful soft clinical pink border */
  box-shadow: 0 6px 16px rgba(232, 57, 70, 0.03);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background-color: #ffffff;
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-item:hover .service-img-wrapper {
  transform: scale(1.08) rotate(3deg);
  border-color: rgba(232, 57, 70, 0.25);
  box-shadow: 0 10px 25px rgba(232, 57, 70, 0.15);
}

.service-item h5 {
  color: #1b2c51;
  /* Dark professional clinical navy */
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.85rem;
  transition: color 0.3s ease;
}

.service-item:hover h5 {
  color: var(--primary);
  /* Transitions to premium red/pink on hover! */
}

.service-item p {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

.service-item:hover p {
  color: #334155;
  /* Darker, highly readable slate color on hover */
}

/*** Feature ***/
@media (min-width: 992px) {
  .container.feature {
    max-width: 100% !important;
  }

  .feature-text {
    padding-left: calc(((100% - 960px) / 2) + 0.75rem);
  }
}

@media (min-width: 1200px) {
  .feature-text {
    padding-left: calc(((100% - 1140px) / 2) + 0.75rem);
  }
}

@media (min-width: 1400px) {
  .feature-text {
    padding-left: calc(((100% - 1320px) / 2) + 0.75rem);
  }
}

/*** Team ***/
.team-item {
  box-shadow: 0 10px 30px rgba(27, 44, 81, 0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid #edf2f7;
  background: #ffffff;
}

.team-item img {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(232, 57, 70, 0.08) !important;
  border-color: rgba(232, 57, 70, 0.2);
}

.team-item:hover img {
  transform: scale(1.06);
}

/* Premium Horizontal Doctor Card */
.team-horizontal-card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid #edf2f7 !important;
  background: #ffffff;
  box-shadow: 0 10px 35px rgba(27, 44, 81, 0.04);
  border-radius: 10px;
}

.team-horizontal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(232, 57, 70, 0.09) !important;
  border-color: rgba(232, 57, 70, 0.25) !important;
  color: #ffff !important;
}

.doctor-img-container {
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

.doctor-img-container img {
  transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-horizontal-card:hover .doctor-img-container img {
  transform: scale(1.04);
}

.team-item .team-text {
  background: #ffffff !important;
  transition: all 0.4s ease;
  padding: 2rem 1.5rem !important;
}

.team-item .team-social,
.team-horizontal-card .team-social {
  margin-top: 1rem;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.team-item:hover .team-social,
.team-horizontal-card:hover .team-social {
  opacity: 1;
  transform: translateY(-2px);
}

.team-item .team-social .btn,
.team-horizontal-card .team-social .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: #fff0f2;
  /* Soft brand background for social buttons */
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(232, 57, 70, 0.05);
}

.team-item .team-social .btn:hover,
.team-horizontal-card .team-social .btn:hover {
  color: #ffffff !important;
  background: var(--primary) !important;
  box-shadow: 0 5px 15px rgba(232, 57, 70, 0.3) !important;
  transform: scale(1.1);
}

/*** Appointment ***/
.bootstrap-datetimepicker-widget.bottom {
  top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
  border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
  font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
  padding: 10px;
  border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
  background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
  border-bottom-color: var(--primary);
}

/*** Testimonial ***/
.testimonial-carousel::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

.testimonial-carousel::after {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

@media (min-width: 768px) {
  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 200px;
  }
}

@media (min-width: 992px) {
  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 300px;
  }
}

.testimonial-carousel .owl-item .testimonial-text {
  background: var(--light);
  transform: scale(0.8);
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
  background: var(--primary);
  transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
  color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
  background: #fff !important;
  border: 2px solid var(--primary) !important;
}

.testimonial-carousel .owl-nav {
  position: absolute;
  width: 350px;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transition: 0.5s;
  z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
  width: 300px;
  opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  position: relative;
  color: var(--primary);
  font-size: 45px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  color: var(--dark);
}

/*** Footer ***/
.footer .btn.btn-social {
  margin-right: 5px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  border: 1px solid #ffffff;
  transition: 0.3s;
}

.footer .btn.btn-social:hover {
  color: var(--primary);
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: #ffffff;
  font-size: 15px;
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--primary);
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .copyright {
  padding: 25px 0;
  font-size: 15px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a:hover {
  color: var(--primary);
}

/* ==========================================
   Custom Premium Callback Appointment Modal
   ========================================== */
.modal-backdrop {
  backdrop-filter: blur(8px);
  background-color: rgba(27, 44, 81, 0.6) !important;
  transition: all 0.3s ease-in-out;
}

#appointmentModal .modal-content {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#appointmentModal.show .modal-content {
  transform: translateY(0);
}

.modal-icon-wrapper {
  animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-icon-wrapper:hover {
  transform: scale(1.15) rotate(5deg);
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }

  70% {
    transform: scale(0.9);
    opacity: 0.9;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Floating label with Left side Icons */
.form-floating-custom {
  position: relative;
  width: 100%;
}

.form-floating-custom .input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  transition: all 0.3s ease;
  z-index: 4;
  font-size: 1.1rem;
  pointer-events: none;
}

.form-floating-custom .custom-input {
  height: 60px;
  padding: 20px 20px 20px 55px !important;
  border-radius: 12px !important;
  border: 1.5px solid #e2e8f0 !important;
  background-color: #ffffff !important;
  color: var(--dark) !important;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.form-floating-custom select.custom-input {
  padding-top: 15px !important;
  padding-bottom: 15px !important;
  line-height: 1.5;
  appearance: none;
}

.form-floating-custom label {
  position: absolute;
  top: 50%;
  left: 55px;
  transform: translateY(-50%);
  color: #8a99ad;
  transition: all 0.3s ease;
  pointer-events: none;
  font-size: 1rem;
  font-weight: 400;
  background-color: transparent;
  padding: 0 5px;
  z-index: 3;
}

/* Input Focus States */
.form-floating-custom .custom-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 10px rgba(232, 57, 70, 0.15) !important;
  outline: none;
}

.form-floating-custom .custom-input:focus ~ .input-icon {
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

/* Handle Floating label positioning on Focus / Input fill */
.form-floating-custom .custom-input:focus ~ label,
.form-floating-custom .custom-input:not(:placeholder-shown) ~ label {
  top: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background-color: #ffffff;
  padding: 0 8px;
  transform: translateY(-50%);
}

/* Special Floating styling rules for select fields */
.form-floating-custom select.custom-input.has-value ~ label,
.form-floating-custom select.custom-input:focus ~ label {
  top: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background-color: #ffffff;
  padding: 0 8px;
  transform: translateY(-50%);
}

/* Premium submit button custom styles */
.btn-submit-callback {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    #ff5260 100%
  ) !important;
  border: none !important;
  color: #fff !important;
  font-size: 1rem !important;
  padding: 12px 35px !important;
  width: auto !important;
  display: inline-block !important;
  letter-spacing: 1px;
  transition: all 0.4s ease !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(232, 57, 70, 0.3) !important;
}

.btn-submit-callback:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(232, 57, 70, 0.4) !important;
}

.btn-submit-callback:active {
  transform: translateY(-1px);
}

.btn-submit-callback::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s;
  opacity: 0;
}

.btn-submit-callback:hover::after {
  animation: shine 1.5s ease-in-out infinite;
}

@keyframes shine {
  0% {
    left: -50%;
    opacity: 0;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    left: 125%;
    opacity: 0;
  }
}

/* Custom Success Popup Overlay notification style */
.alert-popup {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  padding: 18px 28px;
  border-radius: 16px;
  background-color: #1b2c51;
  color: #fff;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
  border-left: 5px solid #2ecc71;
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.alert-popup.show {
  transform: translateX(0);
}

/* validation display fix */
.was-validated .custom-input:invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.15) !important;
}

.was-validated .custom-input:valid {
  border-color: #198754 !important;
}

/* Responsive overrides for Callback Appointment Modal on Mobile */
@media (max-width: 767.98px) {
  #appointmentModal .modal-content {
    border-radius: 16px !important;
  }

  #appointmentModal .modal-header {
    padding: 1.25rem 1rem 1rem 1rem !important;
  }

  #appointmentModal .modal-header .btn-close {
    margin: 1rem !important;
    font-size: 0.85rem !important;
  }

  #appointmentModal .modal-icon-wrapper {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 0.5rem !important;
  }

  #appointmentModal .modal-icon-wrapper i {
    font-size: 1.25rem !important;
  }

  #appointmentModal .modal-title {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.25rem !important;
  }

  #appointmentModal .modal-header p {
    font-size: 0.78rem !important;
  }

  #appointmentModal .modal-body {
    padding: 1.25rem !important;
  }

  #appointmentModal .row.g-4 {
    --bs-gutter-x: 0.75rem !important;
    --bs-gutter-y: 0.75rem !important;
  }

  .form-floating-custom .custom-input {
    height: 48px !important;
    padding: 12px 15px 12px 42px !important;
    font-size: 0.88rem !important;
    border-radius: 8px !important;
  }

  .form-floating-custom select.custom-input {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .form-floating-custom .input-icon {
    left: 15px !important;
    font-size: 0.95rem !important;
  }

  .form-floating-custom label {
    left: 42px !important;
    font-size: 0.88rem !important;
  }

  /* Handle floating label top placement on mobile */
  .form-floating-custom .custom-input:focus ~ label,
  .form-floating-custom .custom-input:not(:placeholder-shown) ~ label,
  .form-floating-custom select.custom-input.has-value ~ label,
  .form-floating-custom select.custom-input:focus ~ label {
    font-size: 0.72rem !important;
    transform: translateY(-50%) !important;
    left: 42px !important;
    padding: 0 5px !important;
  }

  .btn-submit-callback {
    padding: 8px 24px !important;
    font-size: 0.85rem !important;
    border-radius: 30px !important;
    width: auto !important;
    display: inline-block !important;
  }
}

/* ==========================================
   Accreditation & Empanelment Section Styles
   ========================================== */
.accreditation-section {
  background: linear-gradient(180deg, var(--light) 0%, #ffffff 100%);
  padding: 2.2rem 0;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
  position: relative;
  overflow: hidden;
}

.accreditation-title {
  color: var(--dark);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.accreditation-title::after {
  content: "";
  width: 50px;
  height: 3px;
  background-color: var(--primary);
  display: block;
  margin: 8px auto 0 auto;
  border-radius: 2px;
}

.accreditation-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  height: 100%;
  box-shadow: 0 5px 15px rgba(27, 44, 81, 0.04);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1.5px solid #edf2f7;
  display: flex;
  align-items: center;
  text-decoration: none;
  /* Prevent underline when clickable */
}

.accreditation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(27, 44, 81, 0.08);
  border-color: var(--primary);
  text-decoration: none;
  /* Prevent underline on hover */
}

/* Featured / Active Card (Center card - Red) */
.accreditation-card.active {
  background: #e83946;
  border-color: #e83946;
}

.accreditation-card.active:hover {
  border-color: #d32f2f;
}

.accreditation-logo-wrapper {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background: #f8fafc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  transition: all 0.3s ease;
  border: 1px solid #edf2f7;
  padding: 6px;
}

/* Ensure the white wrapper looks great on the red active card */
.accreditation-card.active .accreditation-logo-wrapper {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.accreditation-card:hover .accreditation-logo-wrapper {
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
  transform: scale(1.05);
}

.accreditation-logo-wrapper svg,
.accreditation-logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Ensure images fit nicely */
}

.accreditation-content {
  flex-grow: 1;
}

.accreditation-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

/* Specific colored titles to match screenshot */
.title-isar {
  /* color: #e83946; */
  /* Matching primary brand color */
}

.title-nabh {
  color: #2b704c;
  /* Deep forest green */
}

.title-sikkim {
  color: #2c3e50;
  /* Slate dark blue */
}

.accreditation-card-desc {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.45;
}

/* Override text colors to white for the red active card */
.accreditation-card.active .title-isar,
.accreditation-card.active .title-nabh,
.accreditation-card.active .title-sikkim,
.accreditation-card.active .accreditation-card-title,
.accreditation-card.active .accreditation-card-desc {
  color: #ffffff !important;
}

/* ==========================================
   Premium Floating WhatsApp Button Styles
   ========================================== */
.whatsapp-float {
  position: fixed;
  /* width: 60px; */
  /* height: 60px; */
  bottom: 40px;
  left: 40px;
  /* background-color: #25d366; */
  /* color: #ffffff; */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulse-whatsapp 2s infinite;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  color: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  text-decoration: none;
}

.whatsapp-float i {
  transition: transform 0.3s ease;
}

.whatsapp-float:hover i {
  transform: rotate(10deg);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Mobile responsive adjustments for WhatsApp button */
@media (max-width: 767.98px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 25px;
    left: 25px;
    font-size: 30px;
  }
}

/* ==========================================
   Header Call Icon Ringing/Wobble Animation
   ========================================== */
.animate-call-icon {
  display: inline-block !important;
  animation: call-ring-wobble 2.2s infinite ease-in-out;
  transform-origin: center;
}

@keyframes call-ring-wobble {
  0% {
    transform: scale(1) rotate(0deg);
  }

  8% {
    transform: scale(1.25) rotate(-15deg);
  }

  16% {
    transform: scale(1.25) rotate(15deg);
  }

  24% {
    transform: scale(1.25) rotate(-15deg);
  }

  32% {
    transform: scale(1.25) rotate(15deg);
  }

  40% {
    transform: scale(1.25) rotate(-15deg);
  }

  48% {
    transform: scale(1.25) rotate(15deg);
  }

  56% {
    transform: scale(1) rotate(0deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* ==========================================
   Global Brand Color Theme Overrides (Replacing Bootstrap Blue)
   ========================================== */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(232, 57, 70, 0.15) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  background-color: #d32f2f !important;
  /* Premium dark rose/red on hover */
  border-color: #d32f2f !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(211, 47, 47, 0.25) !important;
}

.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

/* ==========================================
   Premium YouTube Video Showcase Gallery
   ========================================== */
.video-card {
  cursor: pointer;
  background-color: #e7dcdc;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(232, 57, 70, 0.1);
  border-radius: 10px !important;
}

.video-card img {
  transition: transform 0.6s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(27, 44, 81, 0.12) !important;
}

.video-card:hover img {
  transform: scale(1.05);
}

/* Pulsing Main Play Button */
.video-play-btn {
  width: 65px;
  height: 65px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(232, 57, 70, 0.3);
  transition: all 0.3s ease;
  z-index: 2;
}

.video-play-btn i {
  font-size: 1.5rem;
  margin-left: 4px;
  /* Align play icon center */
  transition: transform 0.3s ease;
}

.video-card:hover .video-play-btn {
  transform: scale(1.15);
  background-color: var(--primary);
  box-shadow: 0 6px 20px rgba(232, 57, 70, 0.5);
}

.video-card:hover .video-play-btn i {
  color: #ffffff !important;
  transform: scale(1.1);
}

/* Pulse animation */
@keyframes playPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.video-play-btn {
  animation: playPulse 2s infinite;
}

/* Small Play Button for Sub Videos */
.video-play-btn-small {
  width: 42px;
  height: 42px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(232, 57, 70, 0.2);
  transition: all 0.3s ease;
  z-index: 2;
}

.video-play-btn-small i {
  font-size: 0.9rem;
  margin-left: 2px;
}

.video-card:hover .video-play-btn-small {
  transform: scale(1.15);
  background-color: var(--primary);
  box-shadow: 0 4px 12px rgba(232, 57, 70, 0.4);
}

.video-card:hover .video-play-btn-small i {
  color: #ffffff !important;
}

/* Text overlays */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.video-title-small {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  transition: all 0.3s ease;
}

.video-card:hover .video-title-small {
  padding-bottom: 12px !important;
  color: var(--primary) !important;
}

/* IVF Journey Section Styles */
.bg-light-soft {
  background: linear-gradient(180deg, #ffffff 0%, #fff6f7 100%);
}

.journey-row {
  position: relative;
}

@media (min-width: 992px) {
  .journey-timeline-line {
    position: absolute;
    top: 62px;
    /* aligns perfectly with the center of the 76px icon boxes */
    left: 8%;
    right: 8%;
    height: 2px;
    background: repeating-linear-gradient(
      to right,
      #e83946 0,
      #e83946 8px,
      transparent 8px,
      transparent 16px
    );
    z-index: 1;
    opacity: 0.2;
  }
}

.journey-step-card {
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid #f1f5f9;
  border-radius: 1.25rem !important;
  box-shadow: 0 8px 25px rgba(27, 44, 81, 0.02);
}

.journey-step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(232, 57, 70, 0.08) !important;
  border-color: rgba(232, 57, 70, 0.18) !important;
}

.journey-icon-box {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #fff0f2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px rgba(232, 57, 70, 0.04);
}

.journey-step-card:hover .journey-icon-box {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(232, 57, 70, 0.25);
  transform: scale(1.05);
}

.journey-badge {
  display: inline-block;
  padding: 0.2rem 0.85rem;
  border-radius: 50px;
  background: #fff0f2;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(232, 57, 70, 0.03);
}

.journey-step-card:hover .journey-badge {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(232, 57, 70, 0.15);
}

/* IVF Journey Custom OWL Carousel Slider Styles */
.journey-tracker-nav {
  position: relative;
  max-width: 850px;
  margin: 0 auto 1.5rem auto;
  padding: 0 10px;
}

.tracker-progress-line {
  position: absolute;
  top: 19px;
  /* aligns with center of circles */
  left: 5%;
  right: 5%;
  height: 3px;
  background: #f1f5f9;
  z-index: 1;
  border-radius: 50px;
}

.tracker-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(232, 57, 70, 0.3);
}

.tracker-btn {
  position: relative;
  z-index: 2;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  outline: none !important;
}

.tracker-btn span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.tracker-btn label {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tracker-btn:hover span {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.tracker-btn.active span {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow:
    0 0 0 4px rgba(232, 57, 70, 0.12),
    0 4px 12px rgba(232, 57, 70, 0.25);
  transform: scale(1.1);
}

.tracker-btn.active label {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .journey-tracker-nav {
    max-width: 100%;
    margin-bottom: 1.2rem;
  }

  .tracker-btn span {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .tracker-btn label {
    font-size: 0.65rem;
    margin-top: 0.3rem;
  }

  .tracker-progress-line {
    top: 16px;
  }

  .journey-slide-item .col-lg-7 {
    display: block !important;
    /* Prevent flex centering stretching on stacked columns */
    padding: 1.25rem !important;
    /* Compact padding */
  }
}

@media (max-width: 767.98px) {
  .tracker-btn label {
    display: none;
    /* Hide step labels on mobile screens to prevent overlapping */
  }

  .tracker-btn span {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    border-width: 1px;
  }

  .tracker-progress-line {
    top: 14px;
    height: 2px;
  }

  .journey-tracker-nav {
    max-width: 320px;
    /* Center and restrict width on mobile so circles are close and look elegant */
    margin: 0 auto 1.5rem auto;
  }

  .journey-slide-item .col-lg-7 {
    padding: 0.9rem 1rem !important;
    /* Even more compact padding on small mobile screens to reduce gaps */
  }
}

/* Slide Cards Styles */
.journey-slide-img {
  min-height: 180px;
  background-color: #f8fafc;
}

.journey-slide-img img {
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.journey-slide-item:hover .journey-slide-img img {
  transform: scale(1.03);
}

.journey-slide-badge {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.95rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(232, 57, 70, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

.journey-slide-highlights span {
  font-weight: 500;
  color: #334155;
  font-size: 0.95rem;
}

.journey-slide-highlights i {
  background: #fff0f2;
  color: var(--primary) !important;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 2px 5px rgba(232, 57, 70, 0.05);
}

/* Compact overrides to fit section in a single screen */
.journey-slide-item .col-lg-6,
.journey-slide-item .col-lg-5 {
  padding: 1.1rem 1.5rem !important;
  /* Elegant compact padding */
}

.journey-slide-item h3 {
  font-size: 1.35rem !important;
  /* Increased title size */
  margin-bottom: 0.25rem !important;
}

.journey-slide-item p.text-muted {
  font-size: 0.95rem !important;
  /* Increased description size */
  margin-bottom: 0.75rem !important;
  line-height: 1.45 !important;
}

.journey-slide-item .journey-slide-highlights {
  margin-bottom: 0.75rem !important;
  /* Elegant margins */
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem 0.9rem !important;
}

.journey-slide-item .journey-slide-highlights .d-flex {
  margin-bottom: 0 !important;
}

.journey-slide-item .journey-slide-highlights span {
  font-size: 0.88rem !important;
  /* Increased highlights text size */
  font-weight: 600 !important;
}

.journey-slide-item .journey-slide-highlights i {
  width: 20px !important;
  height: 20px !important;
  font-size: 0.65rem !important;
  margin-right: 0.4rem !important;
}

.journey-slide-item .btn-primary {
  padding: 0.45rem 1.35rem !important;
  /* Optimized button padding */
  font-size: 0.88rem !important;
  /* Increased button font size */
  margin-top: 0.2rem !important;
}

.journey-slide-badge {
  font-size: 0.75rem !important;
  /* Increased badge font size */
  padding: 0.18rem 0.75rem !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Custom Navigation arrows for Journey Carousel */
.journey-carousel.owl-carousel .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.journey-carousel.owl-carousel .owl-nav .owl-prev,
.journey-carousel.owl-carousel .owl-nav .owl-next {
  width: 52px;
  height: 52px;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: var(--primary) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  pointer-events: auto;
  border: 1px solid #e2e8f0 !important;
}

.journey-carousel.owl-carousel .owl-nav .owl-prev {
  margin-left: -26px !important;
}

.journey-carousel.owl-carousel .owl-nav .owl-next {
  margin-right: -26px !important;
}

/* Highlight the next arrow by default with a red background and white icon */
.journey-carousel.owl-carousel .owl-nav .owl-next {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 6px 18px rgba(232, 57, 70, 0.15) !important;
}

.journey-carousel.owl-carousel .owl-nav .owl-prev:hover,
.journey-carousel.owl-carousel .owl-nav .owl-next:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 25px rgba(232, 57, 70, 0.35) !important;
  border-color: var(--primary) !important;
  transform: scale(1.08);
}

.journey-carousel.owl-carousel .owl-nav .owl-next:hover {
  background: #d02b38 !important;
  /* Slightly deeper brand red on hover */
  border-color: #d02b38 !important;
}

@media (max-width: 991px) {
  .journey-carousel.owl-carousel .owl-nav {
    position: relative;
    top: auto;
    transform: none;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
  }

  .journey-carousel.owl-carousel .owl-nav .owl-prev,
  .journey-carousel.owl-carousel .owl-nav .owl-next {
    margin: 0 !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 0.95rem !important;
  }
}

/*** Blog Style ***/
.blog-card {
  background: #ffffff;
  border: 1px solid rgba(27, 44, 81, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(27, 44, 81, 0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(27, 44, 81, 0.08);
  border-color: rgba(232, 57, 70, 0.15);
}

.blog-img-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.blog-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card:hover .blog-img-container img {
  transform: scale(1.08);
}

.blog-category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(232, 57, 70, 0.3);
  z-index: 2;
}

.blog-card-body {
  padding: 24px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.8rem;
  color: #718096;
  margin-bottom: 12px;
}

.blog-meta i {
  color: var(--primary);
}

.blog-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 12px;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3.2em;
}

.blog-card:hover .blog-title {
  color: var(--primary);
}

.blog-excerpt {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 4.8em;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-link i {
  transition: transform 0.3s ease;
}

.blog-link:hover {
  color: var(--dark);
}

.blog-link:hover i {
  transform: translateX(5px);
}

/* Sidebar Widget */
.blog-sidebar-widget {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(27, 44, 81, 0.06);
  box-shadow: 0 4px 15px rgba(27, 44, 81, 0.03);
  margin-bottom: 30px;
}

.widget-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.widget-search {
  position: relative;
}

.widget-search input {
  width: 100%;
  padding: 12px 20px;
  padding-right: 45px;
  border: 1px solid rgba(27, 44, 81, 0.12);
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.widget-search input:focus {
  border-color: var(--primary);
}

.widget-search button {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.1rem;
  cursor: pointer;
}

.widget-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-category-list li {
  margin-bottom: 12px;
}

.widget-category-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #4a5568;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.widget-category-list li a:hover {
  color: var(--primary);
}

.widget-category-list li a span.badge {
  background: var(--light);
  color: var(--primary);
  font-weight: 500;
}

.widget-post-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.widget-post-item:last-child {
  margin-bottom: 0;
}

.widget-post-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.widget-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.widget-post-content {
  flex-grow: 1;
}

.widget-post-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.widget-post-title:hover {
  color: var(--primary);
}

.widget-post-date {
  font-size: 0.75rem;
  color: #718096;
}

/*** Section Typography (SEO & Consistency) ***/
.section-title {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  color: var(--dark) !important;
  line-height: 1.2 !important;
  margin-bottom: 20px !important;
}

.section-subtitle {
  display: inline-block !important;
  border: 1px solid rgba(232, 57, 70, 0.25) !important;
  border-radius: 50px !important;
  padding: 6px 20px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--primary) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  background-color: rgba(232, 57, 70, 0.04) !important;
  margin-bottom: 12px !important;
}

.about-btn {
  padding: 12px 35px !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
}

@media (max-width: 768px) {
  .section-title {
    /* font-size: 2rem !important; */
    font-size: 1.6rem !important;
  }

  .section-subtitle {
    font-size: 0.7rem !important;
  }

  .about-btn {
    padding: 8px 20px !important;
    font-size: 0.85rem !important;
  }
}

.section-title-light {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  margin-bottom: 20px !important;
}

.section-subtitle-light {
  display: inline-block !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 50px !important;
  padding: 6px 20px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  margin-bottom: 12px !important;
}

/* Doctor Profile Cards Responsive Styling */
.team-horizontal-card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(27, 44, 81, 0.02);
}

.team-horizontal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(27, 44, 81, 0.08) !important;
  border-color: rgba(232, 57, 70, 0.15) !important;
}

@media (max-width: 991.98px) {
  .team-horizontal-card {
    border-radius: 16px !important;
  }

  .doctor-img-container {
    height: 320px;
    width: 100%;
  }

  .doctor-img-container img {
    min-height: auto !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

.bg-dark {
  background-color: #197143 !important;
}

.bg-light {
  background-color: #f5e0e14f !important;
}

/* Responsive statistics adjustments for extra-small mobile viewports */
@media (max-width: 575.98px) {
  .header h2 {
    font-size: 1.5rem !important;
    /* Smaller counter numbers on mobile */
  }

  .csignper::after,
  .csignpl::after {
    font-size: 1.1rem !important;
    /* Smaller + and % signs on mobile */
    margin-left: 2px !important;
  }

  .header p {
    font-size: 0.68rem !important;
    /* Smaller counter description text on mobile */
    line-height: 1.3 !important;
  }
}

/* Responsive accreditation cards styles for mobile and tablet viewports */
@media (max-width: 991.98px) {
  .accreditation-card {
    flex-direction: column !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 0.65rem 0.4rem !important;
    /* Shorter padding to fit mobile */
    min-height: 120px !important;
    /* Fixed height for beautiful side-by-side alignment */
  }

  .accreditation-logo-wrapper {
    margin-right: 0 !important;
    margin-bottom: 0.5rem !important;
    width: 48px !important;
    height: 48px !important;
    padding: 4px !important;
  }

  .accreditation-card-title {
    font-size: 0.72rem !important;
    /* Smaller card title on mobile */
    line-height: 1.25 !important;
    margin-bottom: 0 !important;
    text-align: center !important;
  }
}

/* Equalize heights for services carousel cards on mobile/tablet viewports (< 992px) */
@media (max-width: 991.98px) {
  .service-carousel.owl-carousel .owl-stage {
    display: flex !important;
  }

  .service-carousel.owl-carousel .owl-item {
    display: flex !important;
    float: none !important;
  }

  .service-carousel.owl-carousel .col-custom-5 {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .service-carousel.owl-carousel .service-item {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 0 auto !important;
    width: 100% !important;
    height: 100% !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
}

/* Responsive services carousel styles for mobile viewports */
@media (max-width: 767.98px) {
  .service-carousel.owl-carousel .owl-nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 15px !important;
    gap: 15px !important;
  }

  .service-carousel.owl-carousel .owl-nav .owl-prev,
  .service-carousel.owl-carousel .owl-nav .owl-next {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: var(--primary) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    font-size: 0.85rem !important;
  }

  .service-carousel.owl-carousel .owl-nav .owl-prev:hover,
  .service-carousel.owl-carousel .owl-nav .owl-next:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
  }

  /* Shrink service-item padding */
  .service-carousel .service-item {
    padding: 1rem 0.65rem !important;
    /* Extremely compact padding */
    border-radius: 12px !important;
  }

  /* Shrink service-item image wrapper size */
  .service-carousel .service-img-wrapper {
    width: 80px !important;
    height: 80px !important;
    border-width: 2.5px !important;
    margin-bottom: 0.75rem !important;
  }

  /* Shrink service-item title font size */
  .service-carousel .service-item h5 {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.35rem !important;
  }

  /* Shrink service-item description font size slightly */
  .service-carousel .service-item p {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }
}

/* ==========================================
   Premium Mobile Sticky Bottom Book Appointment Button
   ========================================== */
.mobile-appointment-btn-container {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 420px;
  z-index: 1040;
  /* Above sticky nav, but below Bootstrap modal backdrop (1050) */
  display: none;
  /* Hidden by default, shown on mobile only */
  animation: sticky-fade-in-up 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

.mobile-appointment-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    #ff5260 100%
  ) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  padding: 12px 24px !important;
  border-radius: 50px !important;
  box-shadow: 0 8px 25px rgba(232, 57, 70, 0.35) !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
}

.mobile-appointment-btn:hover,
.mobile-appointment-btn:focus,
.mobile-appointment-btn:active {
  background: linear-gradient(135deg, #d32f2f 0%, #e83946 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 30px rgba(232, 57, 70, 0.5) !important;
}

/* Subtle icon wobble animation on the mobile sticky button */
.mobile-appointment-btn i.animate-wobble {
  animation: sticky-icon-wobble 2.5s infinite ease-in-out;
}

@keyframes sticky-fade-in-up {
  from {
    opacity: 0;
    bottom: -50px;
  }

  to {
    opacity: 1;
    bottom: 15px;
  }
}

@keyframes sticky-icon-wobble {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  10%,
  30% {
    transform: rotate(-10deg) scale(1.1);
  }

  20%,
  40% {
    transform: rotate(10deg) scale(1.1);
  }

  50% {
    transform: rotate(0deg) scale(1);
  }
}

/* Responsive visibility and float button shifts for mobile/tablet viewports (< 992px) */
@media (max-width: 991.98px) {
  .mobile-appointment-btn-container {
    display: block !important;
  }

  /* Raise the floating WhatsApp button to prevent overlap with the sticky appointment button */
  .whatsapp-float {
    bottom: 85px !important;
    left: 20px !important;
  }

  /* Raise the Back to Top button and align it with WhatsApp */
  .back-to-top {
    bottom: 85px !important;
    right: 20px !important;
  }

  /* Fix for cramped and overflow layouts in Appointment & Contact sections */
  .bg-light.rounded[class*="p-5"],
  .bg-light.rounded.p-5 {
    padding: 1.5rem 1.15rem !important;
    /* Elegant cozy padding to expand form inputs and details */
  }

  /* Make sure long text like email addresses fit beautifully without clipping */
  .bg-light.rounded h5,
  .bg-light.rounded .ms-4 h5 {
    font-size: 0.9rem !important;
    /* Highly readable mobile fit */
    word-break: break-all !important;
    /* Graceful break wrapper */
    line-height: 1.35 !important;
  }

  /* Optimize layout spacing gap between contact icons and text contents */
  .bg-light.rounded .ms-4 {
    margin-left: 0.75rem !important;
    /* Reclaims horizontal space */
  }

  /* Slightly scale down the white icon-wrapper circles for better mobile proportions */
  .bg-light.rounded .rounded-circle[style*="width: 55px"] {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }

  .bg-light.rounded .rounded-circle[style*="width: 55px"] i {
    font-size: 1.15rem !important;
  }
}

/* ==========================================
   Doctor Cards Mobile Accordion
   ========================================== */
@media (max-width: 991.98px) {
  .doctor-about-trigger {
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 18px !important;
    background-color: var(--light) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(232, 57, 70, 0.08) !important;
  }

  .doctor-about-trigger:hover,
  .doctor-about-trigger.active {
    background-color: #fff0f2 !important;
    border-color: rgba(232, 57, 70, 0.2) !important;
  }

  .doctor-about-trigger .toggle-icon {
    font-size: 0.85rem !important;
    color: var(--primary) !important;
    transition: transform 0.3s ease !important;
  }

  .doctor-about-trigger.active .toggle-icon {
    transform: rotate(180deg) !important;
  }

  .doctor-about-content {
    display: none;
    /* Collapsed by default on mobile */
    padding: 15px 5px 5px 5px;
  }
}

@media (min-width: 992px) {
  /* Ensure it is always visible on desktop and toggle icon is hidden */
  .doctor-about-content {
    display: block !important;
  }

  .doctor-about-trigger .toggle-icon {
    display: none !important;
  }
}

/* Optimize alignment of the step badge with multi-line headers on mobile */
@media (max-width: 767.98px) {
  .journey-slide-item .d-flex.align-items-center {
    align-items: flex-start !important;
  }

  .journey-slide-badge {
    margin-top: 4px !important;
    /* Elegant alignment with the first line of the wrapped title */
  }
}

/* ==========================================
   Premium Search Modal & Search Results Styling
   ========================================== */
.search-modal-container {
  border: 1px solid rgba(232, 57, 70, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 60px rgba(27, 44, 81, 0.15) !important;
}

.search-input-group:focus-within {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(232, 57, 70, 0.12) !important;
  background: #ffffff !important;
}

.search-result-item {
  /* border: 1px solid #edf2f7; */
  transition: all 0.25s ease !important;
  padding: 5px 10px;
}

.search-result-item:hover {
  background-color: #fff6f7 !important;
  border-color: rgba(232, 57, 70, 0.2) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 57, 70, 0.04);
}

.search-result-item:hover .result-title {
  color: var(--primary) !important;
}

.search-trigger-btn {
  border: 1px solid rgba(232, 57, 70, 0.08) !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.search-trigger-btn:hover {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(232, 57, 70, 0.2) !important;
}

/* Mobile Search Modal Compactness and Vertical Centering */
@media (max-width: 767.98px) {
  #searchModal .modal-dialog {
    margin: 0.5rem auto !important;
    max-width: 92% !important;
    /* Elegant compact width on mobile */
    display: flex !important;
    align-items: center !important;
    min-height: calc(100% - 1rem) !important;
  }

  #searchModal .modal-content {
    width: 100% !important;
  }

  #searchModal .search-modal-container {
    padding: 1.5rem 1.25rem !important;
    /* Compact padding */
    border-radius: 16px !important;
  }

  #searchModal h3 {
    font-size: 1.2rem !important;
    /* Smaller header */
    margin-bottom: 0.2rem !important;
  }

  #searchModal p.text-muted {
    font-size: 0.78rem !important;
    /* Smaller subtitle */
  }

  #searchModal .custom-search-input {
    font-size: 0.92rem !important;
    /* Compact input text */
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  #searchModal .custom-search-input::placeholder {
    font-size: 0.85rem !important;
  }

  #searchModal .input-group-text i {
    font-size: 0.92rem !important;
  }

  #searchModal .btn-primary {
    font-size: 0.85rem !important;
    padding: 0.35rem 0.95rem !important;
    /* Smaller button inside input-group */
  }

  /* Compact Results */
  #searchModal .search-result-item {
    padding: 0.65rem 0.85rem !important;
    border-radius: 8px !important;
  }

  #searchModal .result-title {
    font-size: 0.88rem !important;
  }

  #searchModal .search-result-item p.text-muted {
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
  }

  #searchModal .badge {
    font-size: 0.68rem !important;
    padding: 0.15rem 0.5rem !important;
  }

  #searchModal .btn-close {
    font-size: 0.75rem !important;
    margin: 1rem !important;
    /* Perfectly positioned inside padding boundary */
  }
}

/* ==========================================
   Dedicated Search Results Page CSS Styles
   ========================================== */
.search-page-result-card {
  border-bottom: 1px solid #edf2f7;
  transition: all 0.2s ease;
}

.search-page-result-card:last-child {
  border-bottom: none;
}

.search-result-title {
  color: var(--dark);
  transition: color 0.2s ease;
}

.search-page-result-card:hover .search-result-title {
  color: var(--primary) !important;
}

.search-page-result-card a.text-primary {
  transition: opacity 0.2s ease;
}

.search-page-result-card a.text-primary:hover {
  opacity: 0.8;
  text-decoration: underline !important;
}

/* ==========================================
   Premium Blog Details Page CSS Styles
   ========================================== */
.blog-details-wrapper h1 {
  color: var(--dark);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

.blog-content-body p {
  color: #556070;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.blog-content-body h3 {
  color: var(--dark);
  font-weight: 700;
  font-size: 1.45rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.recent-blog-title {
  color: var(--dark);
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-blog-item:hover .recent-blog-title {
  color: var(--primary) !important;
}

.recent-blog-thumb {
  border: 1px solid #edf2f7;
  transition: transform 0.3s ease;
}

.recent-blog-item:hover .recent-blog-thumb {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(232, 57, 70, 0.08);
}

/* ==========================================
   Responsiveness Optimizations for Search & Blog Details
   ========================================== */
@media (max-width: 991.98px) {
  .blog-details-wrapper h1 {
    font-size: 1.75rem !important;
    /* Smaller header on tablets */
    line-height: 1.35 !important;
  }
}

@media (max-width: 767.98px) {
  /* Blog Details Responsive */
  .blog-details-wrapper h1 {
    font-size: 1.35rem !important;
    /* Elegant header size on mobiles */
    line-height: 1.4 !important;
    text-align: left !important;
    /* Left-align for clean mobile wrapping */
    margin-bottom: 1rem !important;
  }

  .blog-content-body p {
    font-size: 0.92rem !important;
    /* Readable mobile body font */
    line-height: 1.7 !important;
    margin-bottom: 1.2rem !important;
  }

  .blog-content-body h3 {
    font-size: 1.15rem !important;
    /* Scaled subtitles */
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem !important;
  }

  .sidebar-wrapper {
    padding: 1.25rem 1rem !important;
    /* Compact sidebar padding */
  }

  /* Search Page Responsive */
  #searchPageForm .search-input-group {
    max-width: 100% !important;
  }

  #searchPageInput {
    font-size: 0.92rem !important;
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
  }

  #searchPageForm .btn-primary {
    font-size: 0.82rem !important;
    padding: 0.35rem 0.95rem !important;
  }

  #searchPageForm .input-group-text i {
    font-size: 0.92rem !important;
  }

  #matchesCounter {
    font-size: 1.2rem !important;
  }

  .search-page-result-card {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  .search-result-title {
    font-size: 1rem !important;
    line-height: 1.4 !important;
  }

  .search-page-result-card p {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
  }
}

/* ==========================================
   Premium Service Details Page CSS Styles
   ========================================== */
.shadow-sm-soft {
  box-shadow: 0 4px 15px rgba(27, 44, 81, 0.03) !important;
}

#sidebarEnquiryForm .custom-input:focus,
#sidebarEnquiryForm select:focus,
#sidebarEnquiryForm textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(232, 57, 70, 0.12) !important;
  outline: none !important;
}

.service-details-wrapper h2 {
  font-weight: 800;
  color: var(--dark);
}

.service-content-body h3 {
  color: var(--dark);
  font-weight: 700;
  font-size: 1.45rem;
}

.service-content-body p {
  color: #556070;
  line-height: 1.8;
}

/* Mobile Service Details Optimization */
@media (max-width: 767.98px) {
  .service-details-wrapper h2 {
    font-size: 1.35rem !important;
    /* Scaled down mobile header */
    line-height: 1.4 !important;
  }

  .service-content-body h3 {
    font-size: 1.15rem !important;
    margin-top: 1.5rem !important;
  }

  .service-content-body p {
    font-size: 0.92rem !important;
    line-height: 1.7 !important;
  }

  .sidebar-wrapper.sticky-top {
    position: static !important;
    /* Disable sticky scrolling on mobile so it stacks naturally */
  }
}
