﻿.doctor-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 20px;
  max-width: 1920px;
  margin: auto;
  padding: 20px;
  padding-top: 40px;
}

.doctor-card a {
  background: white;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(233, 238, 241, 1);
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
}

.doctor-card .doctor-image {
  object-fit: cover;
  min-height: 219px;
  max-height: 219px;
  height: 100%;
  width: 100%;
  transition: transform 0.4s ease-in-out;
  object-position: 85% center;
}

.doctor-card:hover doctor-image {
  transform: scale(1.1);
}

.tag {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: max-content;
  width: calc(100% - 40px);
  padding: 8px 6px;
  background: #ddd;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  /*height: 24px;*/
  height:auto;
  min-height:20px;
  border: 1px solid rgba(213, 38, 24, 0.25);
  background: rgba(253, 244, 243, 1);
  color: rgba(213, 38, 24, 1);
  position: relative;
  top: -12px;
  left: 20px;
}

.doctor-info-container .doctor-title {
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: rgba(34, 39, 42, 1);
}

.doctor-info-container h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: rgba(34, 39, 42, 1);
    line-height: 32px ;
    font-weight: 500 ;

}

.doctor-info-container p {
  font-size: 14px;
  line-height: 18px;
  color: rgba(34, 39, 42, 1);
  font-weight: 500;
  flex-grow: 1;
  margin-bottom: 10px;
}

.doctor-info-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 20px;
}

.doctor-hospital {
  display: flex;
  gap: 4px;
}

.doctor-hospital img {
  width: 16px;
  height: 16px;
}

.appointment-btn {
  background: #fff;
  border: 1px solid rgba(183, 185, 187, 1);
  height: 48px;
  width: 100%;
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  color: rgba(34, 39, 42, 1);
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.appointment-btn:hover,
.appointment-btn:focus-visible {
  background: rgba(213, 38, 24, 1);
  color: #ffffff;
}

.pagination {
  text-align: center;
  margin-top: 40px;
  font-size: 16px;
  display: flex;
  justify-content: center;
}

.page-button {
    background: #ffffff;
    color: rgba(34, 39, 42, 1);
    border: 1px solid rgba(233, 238, 241, 1);
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 4px;
}

.ellipsis {
    background: #ffffff;
    color: rgba(34, 39, 42, 1);
    border: 1px solid rgba(233, 238, 241, 1);
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    border-radius: 4px;
}

.page-button.active {
  background: rgba(213, 38, 24, 1);
  color: rgba(255, 255, 255, 1);
}

@media (max-width: 1040px) {
  .doctor-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
    max-width: 1920px;
    margin: auto;
    padding: 20px;
    padding-top: 40px;
  }
}

@media (max-width: 768px) {
  .doctor-container {
    grid-template-columns: 1fr;
    padding-top: 0;
    gap: 20px;
  }

  .doctor-info-container {
    height: unset;
  }

  .hospital-panel-container {
    display: flex;
    width: 100%;
    margin-bottom: 40px;
    padding-left: 0;
    padding-right: 0;
    margin-top: 20px;
    flex-direction: column;
  }

  .doctor-card .doctor-image {
    object-position: 92% center;
  }
}
