/* DrKoja featured doctors v3.2
 * Desktop: four dense cards per row.
 * Mobile: manual, touch-friendly horizontal carousel with scroll snap.
 * Source photos are never stretched or aggressively cropped.
 * Specialty and city names remain crawlable internal links.
 */
.route-home .featured-doctors-v3.section{
  position:relative;
  overflow:hidden;
  padding-block:44px;
  background:
    radial-gradient(circle at 88% 12%,rgba(204,224,255,.52),transparent 31%),
    linear-gradient(180deg,#f8fbff 0%,#f4f8ff 100%);
}
.route-home .featured-doctors-v3::after{
  content:"";
  position:absolute;
  inset:auto -90px -160px auto;
  width:340px;
  height:340px;
  border:1px solid rgba(105,156,232,.14);
  border-radius:50%;
  pointer-events:none;
}
.route-home .featured-doctors-v3>.container{position:relative;z-index:1}
.route-home .featured-doctors-v3__heading{margin-bottom:16px}
.route-home .featured-doctors-v3__heading>div{min-width:0}
.route-home .featured-doctors-v3__heading p{
  max-width:820px;
  margin-top:4px;
  line-height:1.75;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:1;
  overflow:hidden;
}
.route-home .featured-doctors-v3__track{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:stretch;
  gap:14px;
  outline:none;
}
.route-home .featured-doctors-v3__track:focus-visible{
  border-radius:18px;
  box-shadow:0 0 0 3px rgba(23,105,232,.16);
}
.route-home .featured-doctor-card-v3{
  min-width:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #d9e5f6;
  border-radius:18px;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
  box-shadow:0 8px 23px rgba(31,77,144,.075);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
@media (hover:hover){
  .route-home .featured-doctor-card-v3:hover{
    transform:translateY(-2px);
    border-color:#b9d1f4;
    box-shadow:0 13px 30px rgba(31,77,144,.11);
  }
}
.route-home .featured-doctor-card-v3__media{
  position:relative;
  aspect-ratio:2/1;
  margin:8px 8px 0;
  overflow:hidden;
  border:1px solid #e0e9f5;
  border-radius:14px;
  background:#edf3fa;
  isolation:isolate;
}
.route-home .featured-doctor-card-v3__backdrop{
  position:absolute;
  inset:-16px;
  z-index:0;
  overflow:hidden;
  opacity:.36;
  pointer-events:none;
}
.route-home .featured-doctor-card-v3__backdrop::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(145deg,rgba(241,247,255,.25),rgba(255,255,255,.10));
}
.route-home .featured-doctor-card-v3__backdrop img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:blur(17px) saturate(.84);
  transform:scale(1.14);
}
.route-home .featured-doctor-card-v3__photo{
  position:absolute;
  inset:4px;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:10px;
  background:rgba(255,255,255,.28);
}
.route-home .featured-doctor-card-v3__photo img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center 12%!important;
  transform:none!important;
  margin:0!important;
}
.route-home .featured-doctor-card-v3__favorite{
  position:absolute;
  top:7px;
  left:7px;
  z-index:4;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border:1px solid rgba(190,208,234,.88);
  border-radius:10px;
  background:rgba(255,255,255,.94);
  color:#526b8d;
  font-size:16px;
  line-height:1;
  box-shadow:0 5px 13px rgba(30,67,119,.12);
  cursor:pointer;
}
.route-home .featured-doctor-card-v3__favorite:hover,
.route-home .featured-doctor-card-v3__favorite:focus-visible{
  color:#1769e8;
  border-color:#8db7f5;
  outline:none;
}
.route-home .featured-doctor-card-v3__badge{
  position:absolute;
  right:7px;
  bottom:7px;
  z-index:4;
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:5px 8px;
  border-radius:9px;
  background:linear-gradient(135deg,#2377ef,#0c5ddc);
  color:#fff;
  font-size:9px;
  font-weight:800;
  line-height:1.35;
  box-shadow:0 7px 16px rgba(18,95,217,.23);
}
.route-home .featured-doctor-card-v3__badge i{color:#ffd568;font-size:9px}
.route-home .featured-doctor-card-v3__body{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  padding:10px 12px 7px;
}
.route-home .featured-doctor-card-v3__body h3{
  min-height:39px;
  margin:0 0 1px;
  color:#13223d;
  font-size:14.5px;
  font-weight:900;
  line-height:1.42;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.route-home .featured-doctor-card-v3__body h3 a{
  color:inherit;
  text-decoration:none;
}
.route-home .featured-doctor-card-v3__body h3 a:hover,
.route-home .featured-doctor-card-v3__body h3 a:focus-visible{color:#0f62d8}
.route-home .featured-doctor-card-v3__specialty{
  min-height:20px;
  margin:0 0 2px;
  overflow:hidden;
  color:#1769e8;
  font-size:11px;
  font-weight:850;
  line-height:1.65;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.route-home .featured-doctor-card-v3__specialty a{
  color:inherit;
  text-decoration:none;
}
.route-home .featured-doctor-card-v3__specialty a:hover,
.route-home .featured-doctor-card-v3__specialty a:focus-visible{text-decoration:underline;text-underline-offset:3px}
.route-home .featured-doctor-card-v3__location{
  min-width:0;
  height:20px;
  margin:0;
  display:flex;
  align-items:center;
  gap:4px;
  color:#718096;
  font-size:9.7px;
  line-height:1.45;
}
.route-home .featured-doctor-card-v3__location i{flex:0 0 auto;color:#6e95ca;font-size:11px}
.route-home .featured-doctor-card-v3__location span{
  min-width:0;
  display:block;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.route-home .featured-doctor-card-v3__location a{
  color:inherit;
  text-decoration:none;
}
.route-home .featured-doctor-card-v3__location a:hover,
.route-home .featured-doctor-card-v3__location a:focus-visible{color:#1769e8;text-decoration:underline;text-underline-offset:3px}
.route-home .featured-doctor-card-v3__meta{
  min-height:29px;
  margin-top:4px;
  padding-top:6px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  border-top:1px solid #e2eaf5;
  color:#66758b;
  font-size:9.3px;
}
.route-home .featured-doctor-card-v3__rating,
.route-home .featured-doctor-card-v3__reviews,
.route-home .featured-doctor-card-v3__no-rating{
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-width:0;
}
.route-home .featured-doctor-card-v3__rating i{color:#f6ad08;font-size:13px}
.route-home .featured-doctor-card-v3__rating strong{color:#192942;font-size:11.5px}
.route-home .featured-doctor-card-v3__reviews i,
.route-home .featured-doctor-card-v3__no-rating i{color:#6f8fb9;font-size:11px}
.route-home .featured-doctor-card-v3__reviews{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.route-home .featured-doctor-card-v3__actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) 80px;
  gap:6px;
  padding:0 9px 9px;
  direction:rtl;
}
.route-home .featured-doctor-card-v3__profile,
.route-home .featured-doctor-card-v3__compare{
  min-width:0;
  min-height:37px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:6px 7px;
  border-radius:10px;
  font-family:inherit;
  font-size:10px;
  font-weight:850;
  line-height:1.25;
  text-align:center;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
}
.route-home .featured-doctor-card-v3__profile{
  border:1px solid #1769e8;
  background:linear-gradient(135deg,#2377ef,#0d63df);
  color:#fff;
  box-shadow:0 7px 15px rgba(23,105,232,.16);
}
.route-home .featured-doctor-card-v3__profile i{font-size:12px}
.route-home .featured-doctor-card-v3__compare{
  position:relative;
  border:1px solid #8eb8f7;
  background:#fff;
  color:#1769e8;
}
.route-home .featured-doctor-card-v3__compare>i{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  line-height:1;
}
.route-home .featured-doctor-card-v3__compare [data-compare-label]{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.route-home .featured-doctor-card-v3__compare::after{content:"مقایسه"}
.route-home .featured-doctor-card-v3__compare[aria-pressed="true"]::after{content:"حذف"}
.route-home .featured-doctor-card-v3__compare.is-selected{
  border-color:#0e8e82;
  background:#e9fbf7;
  color:#087a71;
}
.route-home .featured-doctor-card-v3__profile:focus-visible,
.route-home .featured-doctor-card-v3__compare:focus-visible{
  outline:3px solid rgba(23,105,232,.18);
  outline-offset:2px;
}

@media (min-width:701px) and (max-width:1099px){
  .route-home .featured-doctors-v3.section{padding-block:38px}
  .route-home .featured-doctors-v3__track{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
  .route-home .featured-doctor-card-v3__media{aspect-ratio:2/1}
  .route-home .featured-doctor-card-v3__body h3{min-height:22px;-webkit-line-clamp:1}
}

@media (max-width:700px){
  .route-home .featured-doctors-v3.section{padding-block:34px}
  .route-home .featured-doctors-v3{overflow:hidden}
  .route-home .featured-doctors-v3__heading{
    align-items:flex-start;
    margin-bottom:13px;
  }
  .route-home .featured-doctors-v3__heading p{-webkit-line-clamp:2;font-size:12px}
  .route-home .featured-doctors-v3__track{
    display:flex;
    gap:10px;
    margin-inline:-16px;
    padding:3px max(16px,6vw) 13px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:max(16px,6vw);
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    touch-action:pan-x pan-y;
  }
  .route-home .featured-doctors-v3__track::-webkit-scrollbar{display:none}
  .route-home .featured-doctor-card-v3{
    flex:0 0 min(86vw,390px);
    display:grid;
    grid-template-columns:minmax(112px,37%) minmax(0,1fr);
    grid-template-areas:
      "media body"
      "actions actions";
    align-items:stretch;
    direction:ltr;
    scroll-snap-align:start;
    scroll-snap-stop:always;
    border-radius:18px;
  }
  .route-home .featured-doctor-card-v3__media{
    grid-area:media;
    min-height:148px;
    aspect-ratio:auto;
    margin:8px 8px 0 0;
    border-radius:13px;
  }
  .route-home .featured-doctor-card-v3__photo{inset:3px}
  .route-home .featured-doctor-card-v3__body{
    grid-area:body;
    direction:rtl;
    padding:11px 10px 6px 11px;
  }
  .route-home .featured-doctor-card-v3__body h3{
    min-height:39px;
    margin-bottom:1px;
    font-size:14px;
    line-height:1.4;
  }
  .route-home .featured-doctor-card-v3__specialty{min-height:19px;font-size:10.8px}
  .route-home .featured-doctor-card-v3__location{height:19px;font-size:9.4px}
  .route-home .featured-doctor-card-v3__meta{min-height:27px;margin-top:3px;padding-top:5px;font-size:9px}
  .route-home .featured-doctor-card-v3__favorite{top:6px;left:6px;width:30px;height:30px;border-radius:9px;font-size:15px}
  .route-home .featured-doctor-card-v3__badge{right:5px;bottom:5px;padding:4px 6px;border-radius:8px;font-size:7.8px}
  .route-home .featured-doctor-card-v3__actions{
    grid-area:actions;
    grid-template-columns:minmax(0,1fr) 84px;
    gap:6px;
    padding:7px 8px 8px;
    direction:rtl;
  }
  .route-home .featured-doctor-card-v3__profile,
  .route-home .featured-doctor-card-v3__compare{min-height:39px;font-size:9.8px;border-radius:9px}
}

@media (max-width:390px){
  .route-home .featured-doctor-card-v3{flex-basis:89vw;grid-template-columns:110px minmax(0,1fr)}
  .route-home .featured-doctor-card-v3__media{min-height:145px}
  .route-home .featured-doctor-card-v3__body{padding-inline:9px}
  .route-home .featured-doctor-card-v3__body h3{font-size:13.5px}
  .route-home .featured-doctor-card-v3__actions{grid-template-columns:minmax(0,1fr) 80px}
  .route-home .featured-doctor-card-v3__profile,
  .route-home .featured-doctor-card-v3__compare{font-size:9.3px;padding-inline:5px}
}

@media (prefers-reduced-motion:reduce){
  .route-home .featured-doctor-card-v3{transition:none}
  .route-home .featured-doctors-v3__track{scroll-behavior:auto}
}
