/* DrKoja homepage — new doctors cards v2.1
 * Scope: homepage new-doctors section only.
 */
.route-home .home-new-doctors-v2{
  --new-doctor-blue:var(--primary,#1769e8);
  --new-doctor-ink:#16243d;
  --new-doctor-muted:#718096;
  --new-doctor-line:#dbe6f4;
  --new-doctor-soft:#f5f9ff;
  background:#fff;
  padding-block:clamp(42px,5vw,68px);
}
.route-home .home-new-doctors-v2__heading{
  align-items:flex-end;
  margin-bottom:24px;
}
.route-home .home-new-doctors-v2__heading>div{min-width:0}
.route-home .home-new-doctors-v2__heading p{
  max-width:720px;
  margin-top:7px;
  color:#65758d;
  line-height:1.9;
}
.route-home .home-new-doctors-v2__more{
  min-height:44px;
  padding:10px 15px;
  border:1px solid #cfe0f7;
  border-radius:14px;
  background:#fff;
  color:#1467dc;
  box-shadow:0 8px 22px rgba(28,91,177,.07);
  font-weight:850;
  white-space:nowrap;
}
.route-home .home-new-doctors-v2__more:hover{
  border-color:#9fc2f3;
  background:#f7fbff;
  transform:translateY(-1px);
}
.route-home .home-new-doctors-v2__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  align-items:stretch;
  margin:0;
  padding:0;
  list-style:none;
}
.route-home .home-new-doctors-v2__item{min-width:0;list-style:none}
.route-home .home-new-doctor-v2{
  min-width:0;
  width:100%;
  height:100%;
  min-height:116px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  position:relative;
  overflow:hidden;
  border:1px solid var(--new-doctor-line);
  border-radius:18px;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
  box-shadow:0 8px 24px rgba(31,67,112,.055);
  color:inherit;
  text-decoration:none;
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.route-home .home-new-doctor-v2::after{
  content:"";
  position:absolute;
  inset-inline:0;
  bottom:0;
  height:3px;
  background:linear-gradient(90deg,transparent,rgba(23,105,232,.6),transparent);
  opacity:0;
  transform:scaleX(.55);
  transition:.2s ease;
}
@media(hover:hover){
  .route-home .home-new-doctor-v2:hover{
    transform:translateY(-3px);
    border-color:#b8d2f3;
    box-shadow:0 15px 34px rgba(28,79,145,.11);
  }
  .route-home .home-new-doctor-v2:hover::after{opacity:1;transform:scaleX(1)}
}
.route-home .home-new-doctor-v2:focus-visible{
  outline:3px solid rgba(23,105,232,.2);
  outline-offset:3px;
  border-color:#79aaf0;
}
.route-home .home-new-doctor-v2__media{
  flex:0 0 82px;
  width:82px;
  height:88px;
  position:relative;
  overflow:hidden;
  border:1px solid #d9e5f2;
  border-radius:14px;
  background:#edf4fb;
  isolation:isolate;
}
.route-home .home-new-doctor-v2__backdrop,
.route-home .home-new-doctor-v2__photo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}
.route-home .home-new-doctor-v2__backdrop{
  display:none;
}
.route-home .home-new-doctor-v2__media::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(235,243,251,.12));
  pointer-events:none;
}
.route-home .home-new-doctor-v2__photo{
  z-index:2;
  object-fit:cover;
  object-position:50% 18%;
  padding:0;
}
.route-home .home-new-doctor-v2__copy{
  flex:1 1 auto;
  min-width:0;
  display:grid;
  align-content:center;
  gap:3px;
}
.route-home .home-new-doctor-v2__name,
.route-home .home-new-doctor-v2__specialty,
.route-home .home-new-doctor-v2__location{
  display:block;
  min-width:0;
}
.route-home .home-new-doctor-v2__name{
  color:var(--new-doctor-ink);
  font-size:.86rem;
  font-weight:950;
  line-height:1.55;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
}
.route-home .home-new-doctor-v2__specialty,
.route-home .home-new-doctor-v2__location{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.route-home .home-new-doctor-v2__specialty{
  color:var(--new-doctor-blue);
  font-size:.72rem;
  font-weight:850;
  line-height:1.65;
}
.route-home .home-new-doctor-v2__location{
  margin-top:1px;
  color:var(--new-doctor-muted);
  font-size:.65rem;
  font-style:normal;
  line-height:1.55;
}
.route-home .home-new-doctor-v2__location i{
  margin-inline-end:4px;
  color:#7698c6;
  font-size:.72rem;
}
.route-home .home-new-doctor-v2__rail{
  flex:0 0 45px;
  width:45px;
  align-self:stretch;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
}
.route-home .home-new-doctor-v2__badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:24px;
  padding:4px 8px;
  border:1px solid #dbe9fb;
  border-radius:999px;
  background:#f2f7ff;
  color:#1769e8;
  font-size:.6rem;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
}
.route-home .home-new-doctor-v2__badge::before{
  content:"";
  width:6px;
  height:6px;
  flex:0 0 6px;
  border-radius:50%;
  background:#2c7df0;
  box-shadow:0 0 0 4px rgba(44,125,240,.09);
}
.route-home .home-new-doctor-v2__arrow{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid #dbe8f7;
  border-radius:50%;
  background:#f5f9ff;
  color:#1769e8;
  font-size:.82rem;
  transition:.2s ease;
}
@media(hover:hover){
  .route-home .home-new-doctor-v2:hover .home-new-doctor-v2__arrow{
    border-color:#b7d1f4;
    background:#eaf3ff;
    transform:translateX(-2px);
  }
}
.route-home .home-new-doctors-v2__grid::-webkit-scrollbar{height:5px}
.route-home .home-new-doctors-v2__grid::-webkit-scrollbar-thumb{background:#c8d9ee;border-radius:99px}
.route-home .home-new-doctors-v2__grid::-webkit-scrollbar-track{background:transparent}

@media(max-width:1080px){
  .route-home .home-new-doctors-v2__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:820px){
  .route-home .home-new-doctors-v2__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .route-home .home-new-doctors-v2{padding-block:36px}
  .route-home .home-new-doctors-v2__heading{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:10px!important;
    text-align:center!important;
    margin-bottom:18px;
  }
  .route-home .home-new-doctors-v2__heading>div{width:100%;text-align:center}
  .route-home .home-new-doctors-v2__heading p{max-width:33rem;margin-inline:auto}
  .route-home .home-new-doctors-v2__more{align-self:center;margin-inline:auto}
  .route-home .home-new-doctors-v2__grid{
    display:flex;
    overflow-x:auto;
    overflow-y:hidden;
    gap:12px;
    padding:3px 2px 14px;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:2px;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
  }
  .route-home .home-new-doctors-v2__item{
    flex:0 0 min(88vw,380px);
    scroll-snap-align:start;
    scroll-snap-stop:normal;
  }
  .route-home .home-new-doctor-v2{
    min-height:122px;
    padding:13px;
    gap:12px;
  }
  .route-home .home-new-doctor-v2__media{flex-basis:88px;width:88px;height:92px}
  .route-home .home-new-doctor-v2__name{font-size:.9rem}
  .route-home .home-new-doctor-v2__specialty{font-size:.75rem}
  .route-home .home-new-doctor-v2__location{font-size:.68rem}
}
@media(max-width:420px){
  .route-home .home-new-doctors-v2__item{flex-basis:88vw}
  .route-home .home-new-doctor-v2__rail{flex-basis:43px;width:43px}
}
@media(prefers-reduced-motion:reduce){
  .route-home .home-new-doctor-v2,
  .route-home .home-new-doctor-v2::after,
  .route-home .home-new-doctor-v2__arrow{transition:none!important}
}
