.doctor-list {
  position: relative;
  width: 100%;
  padding: 60px 0;
}

.doctor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.doctor-card {
  background: #000; /* Example background color */
  color: #fff;
  overflow: hidden;
  max-width: calc(25% - 20px);
  min-width: 220px;
  flex: 1 1 calc(25% - 20px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.doctor-photo {
  width: 100%;
  height: 400px; /* Placeholder for image */
  /* Add object-fit: cover if using actual images */
}

.doctor-photo img {
  min-height: 400px;
  object-fit: cover;
}

.doctor-info {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.doctor-info .left-side {
  padding-left: 10px;
  padding-bottom: 10px;
}

.doctor-info .right-side button {
  background-color: black;
  outline: 0;
  border: 0;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-info .right-side button svg,.doctor-info .right-side button i {
  font-size: 20px;
  color: #fff;
  transform: rotate(-45deg);
}

.doctor-info h3 {
  margin-bottom: 10px;
  font-size: 26px;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  color: #fff;
}

.doctor-info p {
  margin: 0;
  font-size: 12px;
  font-weight: 300;
  color: #fff;
  line-height: 18px;
}

.doctor-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
    z-index: 5;
    background-color: #fff;
    max-width: 1000px;
    width: 100%;
    padding: 20px;
}
@media(min-width:767px){
  .doctor-popup {
    transform: translate(-50%, calc(-50% + 80px));
  }
}

.doctor-popup .close-icon {
  text-align: right;
  display: inline-block;
  position: absolute;
  right: 5px;
  cursor: pointer;
  padding: 10px;
  top: -5px;
}

.doctor-popup .close-icon svg {
  color: #000;
}

.doctor-popup p {
  color: #000;
  margin-top: 16px;
  font-size: 16px;
  line-height: 26px;
  font-weight: 300;
}

.doctor-popup .popup-btn-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0;
  margin-bottom: 20px;
}

.doctor-popup .popup-btn-wrapper .left-side a,
.doctor-popup .popup-btn-wrapper .right-side a {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  text-transform: uppercase;
  border: 1px solid #000;
  padding: 10px 20px;
}

.doctor-popup {
  display: none; /* ...your styles... */
}
.doctor-popup.active {
  display: block; /* ... */
}
.doctor-overlay {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 4;
}
.doctor-overlay.active {
  display: block;
}
html.doctor-list-open,
body.doctor-list-open {
  overflow: hidden !important; /* Prevent scroll */
}

.doctor-grid .see-all-btn {
    display: none;
}

.doctor-popup .mobile-version {
    display: none;
}

.doctor-popup .desktop-version{
  height: 350px;
}

@media (max-width: 768px) {
  .doctor-card {
    max-width: calc(50% - 10px);
    width: 100%;
    flex: unset;
    min-width: unset;
}

.doctor-photo {
    height: auto;
}

.doctor-photo img {min-height: auto;}

.doctor-info {
    position: static;
    background-color: #000;
    padding: 10px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: unset;
    gap: 10px;
}

.doctor-info .left-side {
    padding: 0;
}

.doctor-info h3 {
    font-size: 14px;
}

.doctor-info p {
    font-size: 12px;
    min-height1: 55px;
}

.doctor-info .right-side button {
    width: 100%;
    height: unset;
}

.doctor-info .right-side button svg,.doctor-info .right-side button i {transform: none;}

.doctor-grid .see-all-btn {
    display: block;
    width: 100%;
    text-align: center;
}

.doctor-grid .see-all-btn > a {
    color: #000;
    font-size: 16px;
    text-decoration: underline;
    text-transform: uppercase;
    font-family: "Outfit", sans-serif;
}

.doctor-popup .desktop-version {
    display: none;
}

.doctor-popup .mobile-version {
    display: block;
    overflow: hidden;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
    position: relative;
}

.doctor-popup {
    padding: 0;
    max-width: 80%;
}

.doctor-popup .mobile-version .img-wrapper {
    position: relative;
}

.doctor-popup .mobile-version .popup-content {
    max-height1: calc(190px - 20px);
    overflow1: hidden;
    overflow-y1: auto;
    padding: 20px;
}

.doctor-popup .mobile-version .popup-content p {
    margin: 0;
    font-size: 12px;
    line-height: 20px;
}
.doctor-popup .close-icon {
    right: 0;
    position: fixed;
        top: 0px;
}

.doctor-popup .popup-btn-wrapper .left-side a, .doctor-popup .popup-btn-wrapper .right-side a {
    font-size: 12px;
    padding: 5px;
}

.doctor-popup .popup-btn-wrapper {
    padding: 0 20px;
    margin: 15px 0;
}
}
