@media (max-width: 992px) {
  .custom-card {
    flex: 10 1 calc(52% - 1rem);
  }
}

.cards-section {
  position: relative;
  margin-top: -80px;
  margin-bottom: 4%;
  font-family: "Open Sans", sans-serif;
}

.cards-container {
  margin: auto;
  padding: 0 1rem;
}

.cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 3.5%;
}

.custom-card {
  flex: 1 1 calc(25% - 1rem);
  min-width: 250px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0px 13px 50px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease-in-out;
}

.custom-card:hover {
  transform: translateY(-5px);
}

.custom-card-blue {
  background: linear-gradient(to right, #ffffff 0%, #d5f3ff 100%);
  height: clamp(60px, 10vh, 70px);
  border-radius: 8px;
  padding: clamp(10px, 2vw, 16px);
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 16px);
  box-shadow: 0 0 6px rgba(0, 170, 255, 0.3);
}

.custom-card-icon img {
  width: 80%;
}

.custom-card-content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem;
}

.custom-card-icon {
  width: clamp(35px, 4vw, 50px);
  height: clamp(35px, 4vw, 50px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, 2vw, 20px);
}

.custom-card-title {
  font-weight: bold;
  font-size: clamp(14px, 1.5vw, 18px);
  margin-left: 20px;
}

.home-banner-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: rgb(255, 255, 255);
    line-height: 1.3;
    margin-bottom: 12px;

}

@media (max-width: 1024px) {
    .home-banner-title {
        font-size: 1.8rem; 
    }
}


@media (max-width: 480px) {
    .home-banner-title {
        font-size: 1.4rem; 
        line-height: 1.4;  
        margin-bottom: 10px;
    }
}

/* -------------------- Responsive Cards -------------------- */
@media (max-width: 992px) {
  .custom-card {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media (max-width: 600px) {
  .custom-card {
    flex: 1 1 100%;
  }
}

/* service */
.services-title {
  width: 434px;
  height: 46px;
  position: absolute;
  top: 698px;
  left: 95px;
  transform: rotate(0deg);
  opacity: 1;
  color: black;
  font-family: "Font1", sans-serif;
  line-height: 1;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
}

.service-right {
  color: #28aadc;
}

.service-card-image {
  flex: 1;
  max-height: 50%;
  padding: 10px;
}

.service-link {
  padding: 0px !important;
  display: -webkit-flex !important;
  flex-direction: column !important;
  width: 100%;
}

.service-link:hover {
  background-color: transparent !important;
  background: none !important;
}

.service-card {
  border: 1px solid #0000001a;
  border-radius: 10px;
  height: 100%;
}

.service-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.service-card-text {
  padding: 15px;
  text-align: left;
}
.service-card-text h3 {
  margin: 10;
  padding: 0;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 25px;
  color: #000000;
  text-align: left;
}
.service-card-text p {
  margin: 0;
  opacity: 1;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 23px;
  letter-spacing: 0;
  color: #303030;
  border-radius: 4px;
}

/* Tablet */
@media (max-width: 768px) {
  .service-card-text p {
    max-width: 100%;
    font-size: 14px;
    line-height: 22px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .service-card-text p {
    font-size: 13px;
    line-height: 20px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .service-card-text h3 {
    font-size: 18px;
    max-width: 100%;
    /* let it take full space on small screens */
  }
}

/* Mobile */
@media (max-width: 480px) {
  .service-card-text h3 {
    font-size: 16px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .service-card-text p {
    max-width: 100%;
    font-size: 14px;
    line-height: 22px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .service-card-text p {
    font-size: 13px;
    line-height: 20px;
  }
}

/* Mobile view */
@media (max-width: 600px) {
  .service-card {
    width: 100%;
  }
}

.heading-why-choose {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 100%;
  opacity: 1;
  margin-top: 10px;
  text-align: left;
  word-break: break-word; /* Prevent text overflow on very small screens */
}

.heading-highlight {
  color: #28aadc; /* Change to your brand color */
}

/* Tablet screens */
@media (max-width: 992px) {
  .heading-why-choose {
    font-size: 28px;
    margin-top: 20px;
  }
}

/* Mobile screens */
@media (max-width: 768px) {
  .heading-why-choose {
    font-size: 24px;
    margin-top: 20px;
  }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
  .heading-why-choose {
    font-size: 20px;
    margin-top: 20px !important;
  }
}

.service-card-icon i {
  font-size: 40px;
  color: #007bff;
  margin: 30px;
}
.service-card-iconss {
  display: flex;
  justify-content: start;
  align-items: start;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 12px;
  box-sizing: border-box;
}

/* Card */
.custom-service-card {
  background: #ffffff;
  border: 1px solid #0000001a;
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left align */
  transition: box-shadow 0.3s ease;
}

.custom-service-card:hover {
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

/* Icon wrapper */
.custom-service-card-icon-wrapper {
  display: flex;
  justify-content: flex-start; /* Left align */
  align-items: center;
}

.custom-service-card-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Text */
.custom-service-card-text {
  text-align: left;
  margin-top: 10px;
  width: 100%;
}

.custom-service-card-text h3 {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 25px;
  color: #000000;
}

.custom-service-card-text p {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 23px;
  color: #303030;
}

@media (max-width: 480px) {
  .custom-service-card-text h3 {
    font-size: 16px;
  }
  .custom-service-card-text p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .service-card-text p {
    font-size: 14px;
    line-height: 20px;
  }
  .service-card-text h3 {
    font-size: 18px;
  }
  .custom-service-card-text p {
    font-size: 15px;
  }
  .custom-service-card-text h3 {
    font-size: 18px;
  }
}

.carousel-item {
  position: relative;
}

.carousel-item img {
  height: 500px;
  object-fit: cover;
  object-position: left;
}

.banner-cap-con {
  width: 100%;
  left: 10px;
  right: 0px;
  top: 25%;
  text-align: left;
  margin: auto;
}

.banner-cap-con .half-size {
  width: 50%;
}

.banner-cap-con h5 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
}

.banner-cap-con p {
  font-size: 1.1rem;
  color: #eaeaea;
  margin: 0;
}

/* ===== Indicators ===== */
.carousel-indicators {
  top: 70%;
  bottom: 20px;
  justify-content: flex-start;
  z-index: 3;
  padding-left: 10px !important;
  margin: 0px !important;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #fff !important;
  opacity: 0.5;
  transition: opacity 0.3s, background-color 0.3s;
}

.carousel-indicators .active {
  background-color: #fff !important;
  opacity: 1;
}

/* ===== Responsive ===== */

@media (min-width: 1400px) {
  .services-container {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 1200px) {
  .carousel-item img {
    height: 400px;
  }
  .banner-cap-con h5 {
    font-size: 1.8rem;
  }
  .banner-cap-con p {
    font-size: 1rem;
  }
}

@media (max-width: 992px) {
  .carousel-item img {
    height: 400px;
  }
  .banner-cap-con h5 {
    font-size: 1.4rem;
  }
  .banner-cap-con p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .carousel-item img {
    height: 400px;
  }
  .banner-cap-con h5 {
    font-size: 1.3rem;
  }
  .banner-cap-con p {
    font-size: 0.9rem;
  }
  .carousel-indicators {
    justify-content: center;
    margin-left: 0;
  }

  .half-size {
    width: 70% !important;
  }

  .carousel-indicators {
    top: 65%;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .carousel-item img {
    height: 350px;
  }
  .banner-cap-con h5 {
    font-size: 1rem;
  }
  .banner-cap-con p {
    font-size: 0.8rem;
  }
}

@media (max-width: 450px) {
  .half-size {
    width: 90% !important;
  }
}

.doctor-feature {
  position: relative;
  background-image: url(../image/doctor-bg.png);
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  overflow: hidden;
  height: 400px;
  width: 100%;
  color: #fff !important;
}

.doctor-feature .italic-p {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
}

.doctor-feature .left-head {
  font-family: "Open Sans";
  font-weight: 600;
  font-size: 30px;
  width: 75%;
  margin-left: 0px;
}

.doctor-feature .light-p {
  font-family: "Open Sans";
  font-weight: 500;
  font-size: 15px;
  margin-top: 10px;
}

.doctor-feature .cont-btn {
  font-family: "Open Sans";
  font-weight: 600;
  font-size: 14px;
  color: #000;
  background-color: #fff;
  border: none;
  border-radius: 10px;
  width: fit-content;
  padding-left: 35px;
  padding-right: 35px;
}

.doctor-service-img-bt {
  height: 100%;
  margin: auto;
}

@media (max-width: 1200px) {
  .banner-cap-con {
    max-width: 100% !important;
  }
}

.service-card h3:hover {
  text-decoration: underline;
}

.real-stories-card {
  background: #FAFAFA !important;
  border: 1px solid #0000001a !important;
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left align */
  transition: box-shadow 0.3s ease;
  min-height: 40vh;
}

.real-stories-card:hover {
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
    .heading-hospital-services {
        font-size: 20px;
        margin-top: 20px !important;
        line-height: 1.6;
    }
}


@media only screen and (min-width: 1024px) and (max-width: 1024px) {
  .custom-ipad-row > .col {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }

  .real-stories-card {
    min-height: 30vh;
  }
}