/* card item */
.big-modal{
    z-index: 1200;
    top: 10vh;
}
.card-shadow {
  box-shadow: 0 0 40px rgba(182, 182, 182, 0.251);
}

.card-shadow .btn-border-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
  transition: all 0.5s ease-in-out;
}

.modal-card {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-height: 30rem;
}

.modal-doctor-card {
  width: 30%;
}

.modal-doctor-details {
  width: 70%;
  max-height: 23rem;
  overflow: auto;
}

.bull-color {
  color: var(--secondary-color);
  font-size: 3rem;
  height: 1.5rem;
  position: relative;
  bottom: 0.3rem !important;
  /* margin-top:0.55rem ; */
}

.modal-xl {
  max-width: 70% !important;
}

.custom-close {
  position: absolute;
  top: -10%;
  right: -6%;
  background-color: var(--secondary-color);
  color: #fff;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  font-size: 1.5rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.custom-close:hover {
  background-color: #fff;
  color: var(--primary-color);
}

/*------------------- slider -----------------------*/
.custom-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 1rem;
}

.custom-prev {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  left: -10%;
  width: 2rem;
  height: 2rem;
  font-size: 1.5rem;
}

.splide__arrows--rtl .splide__arrow--prev {
  right: -8em;
}

.splide__arrows--rtl .splide__arrow--next {
  left: -8em;
}

.custom-next {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  right: -10%;
  width: 2rem;
  height: 2rem;
  font-size: 1.5rem;
}

.custom-prev:hover,
.custom-next:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/*------------------ scroll bar --------------------*/

.modal-doctor-details::-webkit-scrollbar {
  width: 0.4rem;
}

.modal-doctor-details::-webkit-scrollbar-track {
  background: var(--soft-white);
  border-radius: 10px;
}

.modal-doctor-details::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.modal-doctor-details::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Media Queries - Preserve design on lg screens and above */

@media (min-width: 992px) and (max-width: 1366px) {
  .bull-color {
    font-size: 2.5rem;
    height: 1rem;
    bottom: 1.2rem !important;
  }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  .modal-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-height: none;
    overflow: auto;
  }

  .card-item {
    padding-bottom: 1rem !important;
  }

  .modal-content {
    margin-top: 3rem;
    /* height: 90vh; */
    /* overflow-y: auto; */
  }

  .modal-doctor-card {
    width: 40%;
    margin: 0 auto;
  }

  .modal-doctor-details {
    width: 100%;
    max-height: 26vh;
    padding: 1rem;
    margin-top: 0.5rem;
    overflow-y: auto;
  }

  .custom-prev {
    inset-inline-start: 0% !important;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    z-index: 10 !important;
    color: var(--secondary-color) !important;
    border: 1px solid var(--secondary-color) !important;
  }

  .custom-next {
    color: var(--secondary-color) !important;
    border: 1px solid var(--secondary-color) !important;
    inset-inline-end: 0% !important;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem !important;
    z-index: 10 !important;
  }

  .custom-next:hover,
  .custom-prev:hover{
    color: #fff !important;
    background-color:  var(--secondary-color);
  }

  .custom-close {
    top: 2% !important;
    right: 2%;
    z-index: 10;
  }

  .bull-color {
    font-size: 2.5rem;
    height: 1rem;
    bottom: 0.5rem !important;
  }

  .custom-arrows {
    position: absolute;
    top: 40%;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 1rem;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .modal-content {
    margin-top: 3rem;
    /* height: 75vh; */
    /* overflow-y: auto; */
  }

  .modal-doctor-card {
    width: 40%;
  }

  .card-item {
    padding-bottom: 1rem !important;
  }

  .modal-content {
    padding: 1rem !important;
  }

  .modal-xl {
    max-width: 80% !important;
  }

  .bull-color {
    font-size: 2.5rem;
    height: 1rem;
  }

}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .modal-xl {
    margin: 0.5rem auto;
    max-width: 90% !important;
  }

  .modal-doctor-card {
    width: 70%;
  }

  .modal-content {
    margin: auto;
    /* height: 75vh; */
  }

  .modal-card {
    margin: 0;
    padding: 0;
  }

  .bull-color {
    font-size: 2.5rem;
    height: 1rem;
    bottom: 1.3rem !important;
  }

  .modal-doctor-details h5,
  .modal-doctor-card h5 {
    font-size: 1rem;
  }

  .modal-doctor-details h6,
  .modal-doctor-card h6 {
    font-size: 0.9rem;
  }


  .custom-prev {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    z-index: 10 !important;
  }

  .custom-next {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem !important;
    z-index: 10 !important;
  }

  .custom-arrows {
    top: 20% !important;
  }
}

@media (max-width: 480px) {
  .modal-xl {
    max-width: 100% !important;
    margin: 0.5rem auto;
  }
  .modal-doctor-details {
    /* width: 90%; */
    max-height: 15rem;
    overflow: auto;
  }

  .custom-arrows {
    top: 20% !important;
  }

  .custom-prev {
    inset-inline-start: -5% !important;
    background-color: transparent;
    color: var(--secondary-color) !important;
    border: 1px solid var(--secondary-color) !important;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    z-index: 10 !important;
  }


  .custom-next {
    inset-inline-end: -5% !important;
    background-color: transparent;
    color: var(--secondary-color) !important;
    border: 1px solid var(--secondary-color) !important;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem !important;
    z-index: 10 !important;
  }

  .custom-next:hover,
  .custom-prev:hover {
    color: #fff !important;
    background-color: var(--secondary-color);
  }

  .modal-doctor-card {
    width: 90% !important;
  }

  .custom-close {
    top: 1% !important;
    right: 1%;
    z-index: 10;
  }
}

