/* Hospital individual */
.hospital-profile-container {
  background-color: #D5EDFF;
  border-radius: 20px;
  padding: 30px;
  margin: 30px auto;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .hospital-profile-container {
    border-radius: 15px;
    padding: 15px;
    margin: 20px auto;
  }
}

.hospital-image {
  border-radius: 25px;
  width: 100%;
}

.hospital-info-box {
  padding: 20px;
  background-color: white;
  border-radius: 20px;
}


/* specialities boxx */
.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
}


.specialist-card {
  background-color: #e6f3fe;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.specialist-card img {
  padding: 15px;
  height: auto;
  display: block;
  object-fit: contain;
  /* ensures the image fits nicely */
}

@media (max-width: 768px) {
  .specialist-card img {
    max-width: 250px;
    margin: auto;
  }
}

.specialist-info {
  padding: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.specialist-doctor-name {
  color: #3f3c86;
  font-size: 16px !important;
  font-weight: 600;
  text-align: center;
}

.specialist-doctor-study {
  min-height: 42px;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stats Section Styling */
.stats-section {
  background: #F7F7F7;
  text-align: center;
  padding: 25px 0px 10px 0px;
}

.stats-section-pk {
  background: #d5edff;
  text-align: center;
  padding: 25px;
}

.stats-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  margin: 0 auto;
}

.stats-box .stats-icon {
  padding: 5px;
  background-color: #fff;
  border-radius: 15px;
}

.stats-box h3 {
  font-size: 28px;
  font-weight: 700;
  color: #2F2E45;
  margin-bottom: 5px;
}

.stats-box p {
  font-size: 16px;
  color: #2F2E45;
  font-weight: 400;
  margin: 0;
}

/* Health Package Section Styles */
#health-packages .checkup-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background-color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  color: inherit;
  position: relative;
}

#health-packages .checkup-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#health-packages .card-body {
  text-align: center;
}

#health-packages h5 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #3f3c86;
}

#health-packages .price {
  font-size: 20px;
  font-weight: bold;
  color: #e53935;
  margin-bottom: 15px;
}

#health-packages ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

#health-packages ul li {
  font-size: 14px;
  color: #333;
  padding: 5px 0;
  border-bottom: 1px dotted #ccc;
}

#health-packages .more-tests {
  font-style: italic;
  color: #888;
  border-bottom: none;
}

#health-packages .book-btn {
  background-color: #3f3c86;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

#health-packages .book-btn:hover {
  background-color: #2b246b;
}

@media (max-width: 576px) {
  #health-packages .checkup-card {
    padding: 16px;
  }

  #health-packages h5 {
    font-size: 16px;
  }

  #health-packages .price {
    font-size: 18px;
  }

  #health-packages ul li {
    font-size: 13px;
  }

  #health-packages .book-btn {
    width: 100%;
    padding: 10px;
    font-size: 15px;
  }
}

#health-packages .row {
  margin-left: -10px;
  margin-right: -10px;
}

#health-packages .col-sm-6,
#health-packages .col-6 {
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 20px;
  height: -webkit-fill-available;
  /* space between rows on mobile */
}



.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;
}
