.banner-wrapper .boxx-outer {
  width: 100%;
  position: relative
}

.banner-wrapper .boxx-outer .border-pic-card .hover-image,
.banner-wrapper .boxx-outer .boxx figure .hover-image,
.banner-wrapper .boxx-outer:hover .border-pic-card .default-image,
.banner-wrapper .boxx-outer:hover .boxx figure .default-image {
  display: none
}

.banner-wrapper .boxx-outer:hover .border-pic-card .hover-image,
.banner-wrapper .boxx-outer:hover .boxx figure .hover-image {
  display: block
}

.banner-wrapper .boxx-outer,
.banner-wrapper .boxx-outer .border-pic-card,
.banner-wrapper .boxx-outer .border-pic-card img {
  width: 100%;
  aspect-ratio: 244/157;
  object-fit: contain;
  display: block;
}

.banner-wrapper .boxx-outer .boxx {
  display: flex !important;
  flex-direction: column;
  justify-content: center !important;
  min-height: 0px !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  text-align: center;
  margin: 0;
  overflow: hidden;
  font-weight: 600;
  width: 90%;
  height: 85%;
  background-color: #f8f8f8 !important;
  box-shadow: 0 1px 10px 0 rgb(0 0 0 / .1);
  padding: 5px 15px !important
}

.banner-wrapper .boxx-outer .boxx figure {
  width: 45px !important;
  height: 45px !important;
  padding: 0px !important;
  margin: 0 auto;
  margin-bottom: 5px
}

.banner-wrapper .boxx-outer .boxx .boxx a span {
  color: #00539f
}

.banner-wrapper .boxx-outer:hover .boxx span {
  color: #f48120
}

.banner-wrapper .boxx-outer .boxx:hover img {
  filter: none !important
}

.banner-wrapper .specialties-boxx {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  border-radius: 15px;
  text-align: center;
  overflow: hidden;
  background-color: #ffffff !important;
  padding: 10px !important;
  transition: all 0.5s ease-in-out;
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid #3f3c8670;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.specialties-boxx-figure {
  min-width: 45px;
  max-width: 45px;
  margin: 0px;
}

.specialties-boxx-figure img {
  background: #3f3c86;
  border-radius: 50%;
  padding: 2px;
}

.banner-wrapper .specialties-boxx:hover {
  transform: translateY(-8px);
  -webkit-transform: translateY(-8px);
  -ms-transform: translateY(-8px);
  box-shadow: rgba(5, 73, 151, 0.25) 0px 2px 5px -1px, rgba(12, 77, 175, 0.3) 0px 1px 3px -1px;
}

.banner-wrapper .specialties-boxx span {
  color: #3f3c86;
  font-size: 16px !important;
  text-align: left !important;
}

.banner-wrapper .col a:hover {
  color: #333 !important
}

.speciality-section {
  padding: 10px;
  margin: auto;
  background: #f9f9fb;
}

.speciality-hod {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #D8D6FB;
  padding: 20px;
  border-radius: 25px;
  gap: 30px;
  max-width: 900px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin: auto;
  margin-bottom: 30px;
}

.speciality-image {
  border-radius: 25px;
  width: 100%;
  max-width: 450px;
}


.hod-info {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.hod-info h4 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.hod-info p {
  font-size: 16px;
  margin: 5px 0 15px;
  font-weight: bold;
}

.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.speciality-btn {
  color: white;
  background-color: #3f3c86;
  padding: 10px 20px;
  border-radius: 25px;
  margin-bottom: 15px;
  text-align: center;
}

.speciality-btn-two {
  color: #333333;
  background-color: white;
  padding: 10px 20px;
  border: 1px solid #333333;
  border-radius: 25px;
}

.overview h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.btn-close-custom {
  color: #3c3c3c !important;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
}

.overview p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
  color: #444;
}

@media (max-width: 768px) {
  .speciality-hod {
    flex-direction: column;
    text-align: center;
  }

  .btn-group {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.doctor-card {
  display: flex;
  border-radius: 25px !important;
  height: 100%;
  justify-content: space-between;
  width: 100%;
}

.doctor-card .doctor-name {
  text-align: center;
  font-weight: 600;
  color: #3f3c86;
}

.doctor-card .doctor-details {
  text-align: left;
  font-size: 14px;
}

.doctor-card .doctor-image {
  max-width: 450px;
  border-radius: 25px;
  width: 100%;
}

.doctor-card .btn {
  background: #3f3c86;
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 14px;
  transition: all 0.3s ease-in-out;
  border: 1px solid #3f3c86;
}

.hospital-network-wrapper {
  margin-bottom: 15px;
  margin-top: 20px;
}

.hospital-network-card {
  border-radius: 12px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.hospital-network-card img {
  border-radius: 12px;
  max-height: 200px;
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.hospital-network-card p {
  padding: 15px 20px;
  font-weight: 600;
  min-height: 88px;
}

/* Hospital Card */
    .hospital-card {
      border-radius: 20px;
      overflow: hidden;
      background: white;
      transition: 0.3s ease-in-out;
      box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    }

    .hospital-card:hover {
      transform: translateY(-5px);
      box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
    }

    .hospital-card img {
      width: 100%;
      height: 166px;
      object-fit: cover;
      border-top-left-radius: 15px;
      border-top-right-radius: 15px;
    }

    .hospital-card .hospital-info {
      padding: 15px;
      height: 90px;
    }

    .hospital-card .hospital-info1 {
      padding: 15px;

    }

    .hospital-card .hospital-info1 h5 {
      font-size: 14px;
      font-weight: 600;
      color: #3F3C86;
    }

    .hospital-card .hospital-info h5 {
      font-size: 14px;
      font-weight: 600;
      color: #3F3C86;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      /* Limit to 2 lines */
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .hospital-card .hospital-info p {
      font-size: 14px;
      color: #333333;
      font-weight: 400;
      margin-top: 5px;
      margin-bottom: 0px;
    }

    @media (max-width: 767px) {
      .hospital-card {
        border-radius: 15px;
      }

      .hospital-card .hospital-info {
        height: 75px;
      }

      .hospital-card img {
        height: 150px;
      }
    }