
/* v7.6.3 — Home page Doctors (mobile) */
/* Force single-column on small screens to avoid cramped two-up cards */
@media (max-width: 700px){
  .home-doctors .grid,
  .home .doctors-grid,
  .home .doctors-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .home-doctors .card,
  .home .doctors-grid .card,
  .home .doctors-list .card {
    width: 100% !important;
    box-sizing: border-box;
    border-radius: 16px;
    overflow: hidden; /* keep content inside rounded corners */
    display: flex;
    flex-direction: column;
  }
  /* Make sure headings wrap and don't bulge out */
  .home-doctors .card h3,
  .home .doctors-grid .card h3,
  .home .doctors-list .card h3,
  .home-doctors .card .name {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.25;
    margin: 12px 14px 6px;
    font-size: 1.05rem;
    font-weight: 800;
  }
  /* Meta/specialty text */
  .home-doctors .card .meta,
  .home .doctors-grid .card .meta,
  .home .doctors-list .card .meta {
    margin: 0 14px 12px;
    color: #475569;
  }
  /* Doctor image normalization */
  .home-doctors .card img,
  .home .doctors-grid .card img,
  .home .doctors-list .card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  /* Primary action button inside card */
  .home-doctors .card .btn,
  .home .doctors-grid .card .btn,
  .home .doctors-list .card .btn {
    margin: 0 14px 14px;
    align-self: flex-start;
  }
}
