.doctor-page-loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.doctor-page-loader__logo {
  width: min(220px, 58vw);
  height: auto;
  display: block;
  animation: doctorLoaderPulse 1.1s ease-in-out infinite alternate;
}

.doctor-page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes doctorLoaderPulse {
  from {
    opacity: 0.72;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.doctor-list-page {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doctor-list-shell {
  width: 100%;
  padding: 8px 18px 24px;
  box-sizing: border-box;
}

.doctor-search-wrap {
  position: relative;
  border: 1px solid #d7e1e7;
  border-radius: 0;
  padding: 18px 24px 26px;
  margin: -25px 0 26px;
}

.doctor-search-wrap::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: -2px;
  height: 3px;
  border-radius: 999px;
  background: #123a7e;
}

.doctor-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px auto;
  gap: 14px;
  align-items: center;
}

.doctor-search-field {
  height: 52px;
  width: 100%;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: #ffffff;
  padding: 0 14px;
  color: #6c7689;
  font-family: "Montserrat:Light", sans-serif;
  font-size: 18px;
}

.doctor-search-field:focus {
  outline: none;
  border-color: #123a7e;
  box-shadow: 0 0 0 2px rgba(18, 58, 126, 0.14);
}

.doctor-department-filter {
  height: 52px;
  width: 100%;
}

.doctor-department-dropdown {
  position: relative;
}

.doctor-department-dropdown__trigger {
  height: 52px;
  width: 100%;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: #ffffff;
  padding: 0 14px;
  color: #6c7689;
  font-family: "Montserrat:Light", sans-serif;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.doctor-department-dropdown__trigger:hover {
  border-color: #c6d5e7;
  background: #fbfcff;
}

.doctor-department-dropdown.is-open .doctor-department-dropdown__trigger,
.doctor-department-dropdown__trigger:focus {
  outline: none;
  border-color: #123a7e;
  box-shadow: 0 0 0 2px rgba(18, 58, 126, 0.14);
}

.doctor-department-dropdown__chevron {
  color: #5d6a85;
  transition: transform 0.22s ease;
}

.doctor-department-dropdown.is-open .doctor-department-dropdown__chevron {
  transform: rotate(180deg);
}

.doctor-department-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #ffffff;
  border: 1px solid rgba(20, 58, 126, 0.16);
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(18, 58, 126, 0.16);
  padding: 8px;
  max-height: 340px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.22s ease;
}

.doctor-department-dropdown.is-open .doctor-department-dropdown__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.doctor-department-dropdown__menu::-webkit-scrollbar {
  width: 9px;
}

.doctor-department-dropdown__menu::-webkit-scrollbar-track {
  background: #eef2f8;
  border-radius: 999px;
}

.doctor-department-dropdown__menu::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9fb4d2, #6f90bd);
  border-radius: 999px;
  border: 2px solid #eef2f8;
}

.doctor-department-dropdown__menu {
  scrollbar-color: #6f90bd #eef2f8;
  scrollbar-width: thin;
}

.doctor-department-dropdown__option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 10px;
  padding: 15px 12px;
  color: #334161;
  font-family: "Montserrat:Regular", sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.doctor-department-dropdown__option:hover {
  background: #eef4ff;
  color: #1b3568;
}

.doctor-department-dropdown__option.is-active {
  background: #e7f0ff;
  color: #123a7e;
  font-family: "Montserrat:Medium", sans-serif;
}

.doctor-search-btn {
  height: 52px;
  min-width: 118px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  background: #0f3577;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Montserrat:Medium", sans-serif;
  font-size: 18px;
  letter-spacing: 0.4px;
  cursor: pointer;
}

.doctor-search-btn:hover {
  background: #123f8d;
  box-shadow: 0 8px 14px rgba(15, 53, 119, 0.22);
}

.doctor-search-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.doctor-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  width: 100%;
}

.doctor-list-grid.is-filtered {
  grid-template-columns: repeat(auto-fit, minmax(360px, 420px));
  justify-content: start;
}

.doctor-list-grid.is-filtered .doctor-list-card {
  max-width: 420px;
}

.doctor-list-card {
  --card-radius: 32px;
  --text: #192950;
  --accent: #192950;
  position: relative;
  display: block;
  min-height: 530px;
  border-radius: var(--card-radius);
  background: #fff;
  border: 1px solid #3a3a3a;
  overflow: hidden;
}

.doctor-list-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../../_assets/v11/dr_bg.png");
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.doctor-list-card::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #ffffff;
  border-radius: calc(var(--card-radius) - 5px);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.doctor-list-card:hover {
  border-color: transparent;
}

.doctor-list-card:hover::before,
.doctor-list-card:hover::after {
  opacity: 1;
}

.doctor-list-card .card__content {
  padding: 44px 40px;
  height: 100%;
  display: flex;
  align-items: flex-start;
}

.doctor-list-card .card__text {
  max-width: 55%;
  z-index: 2;
  margin-left: -15px;
}

.doctor-list-card .card__text h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.05;
  color: var(--accent);
  transition: color 0.8s ease;
}

.doctor-list-card .name-light {
  font-family: "Montserrat:Light", sans-serif;
  font-weight: 300;
}

.doctor-list-card .name-medium {
  font-family: "Montserrat:Medium", sans-serif;
  font-weight: 500;
}

.doctor-list-card .name-divider {
  border: 0;
  height: 2px;
  width: 48px;
  background: #cfd5e6;
  margin: 10px 0 12px;
  border-radius: 999px;
}

.doctor-list-card .doctor-department-small {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  font-family: "Montserrat:Light", "Montserrat", sans-serif;
  font-weight: 300;
  color: #5b6476;
}

.doctor-list-card:hover .card__text h2,
.doctor-list-card:hover .doctor-department-small {
  color: #fff;
}

.doctor-list-card .card__image {
  position: absolute;
  right: -40px;
  bottom: 0;
  top: 0;
  width: 384px;
  height: 577px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 1;
  transform: translateY(-40px);
}

.doctor-list-card .card__image img {
  width: 384px;
  height: 577px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter: grayscale(1);
  transition: filter 0.6s ease;
}

.doctor-list-card:hover .card__image img {
  filter: grayscale(0);
}

@media (max-width: 1100px) {
  .doctor-search-row {
    grid-template-columns: 1fr;
  }

  .doctor-department-filter {
    width: 100%;
  }

  .doctor-search-btn {
    width: 100%;
  }
}
