/* ==========================================
   Doctor Cards — Responsive
   ========================================== */

.drb-cards {
  display: grid;
  /* ✅ min() trick — 320px এর চেয়ে ছোট container এ 100% width নেবে */
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 18px;
}

.drb-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--drb-border);
  border-radius: var(--drb-radius);
  box-shadow: var(--drb-shadow);
  transition: box-shadow .18s, transform .18s, border-color .18s;
  font-family: var(--drb-font-bn);
  min-width: 0;              /* ✅ flex child overflow বন্ধ */
  overflow: hidden;
}

.drb-card:hover {
  box-shadow: var(--drb-shadow-lg);
  transform: translateY(-2px);
  border-color: #bae6fd;
}

.drb-card .thumb {
  width: 88px;
  height: 108px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  background: #f3f4f6;
}

.drb-card .body {
  flex: 1;
  min-width: 0;              /* ✅ flex child overflow বন্ধ */
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.drb-title {
  font-size: 15.5px;
  margin: 0 0 4px;
  line-height: 1.35;
  font-weight: 700;
  overflow-wrap: break-word;
}

.drb-title a {
  color: var(--drb-text);
  text-decoration: none;
}

.drb-title a:hover { color: var(--drb-primary); }

.drb-edu,
.drb-desig,
.drb-affil,
.drb-spec {
  font-size: 12.5px;
  color: var(--drb-text-soft);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.drb-desig { color: var(--drb-text); font-weight: 600; }
.drb-spec { color: var(--drb-primary); font-weight: 600; }

/* ── Verified mark ── */
.drb-doctor-verified-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  background: var(--drb-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  line-height: 1;
}

/* ── Rating ── */
.drb-doctor-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-top: 4px;
}

.drb-doctor-stars {
  position: relative;
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1px;
  font-family: system-ui, sans-serif;
}

.drb-doctor-stars-bg { color: #e5e7eb; }

.drb-doctor-stars-fill {
  position: absolute;
  top: 0; left: 0;
  white-space: nowrap;
  overflow: hidden;
  color: #f59e0b;
}

.rating-width-0   { width: 0%; }
.rating-width-5   { width: 5%; }
.rating-width-10  { width: 10%; }
.rating-width-15  { width: 15%; }
.rating-width-20  { width: 20%; }
.rating-width-25  { width: 25%; }
.rating-width-30  { width: 30%; }
.rating-width-35  { width: 35%; }
.rating-width-40  { width: 40%; }
.rating-width-45  { width: 45%; }
.rating-width-50  { width: 50%; }
.rating-width-55  { width: 55%; }
.rating-width-60  { width: 60%; }
.rating-width-65  { width: 65%; }
.rating-width-70  { width: 70%; }
.rating-width-75  { width: 75%; }
.rating-width-80  { width: 80%; }
.rating-width-85  { width: 85%; }
.rating-width-90  { width: 90%; }
.rating-width-95  { width: 95%; }
.rating-width-100 { width: 100%; }

.drb-doctor-rating-count {
  color: var(--drb-text-soft);
  font-size: 12px;
}

/* ── Chambers ── */
.drb-chambers {
  margin: 8px 0;
  font-size: 12px;
  color: var(--drb-text-soft);
  line-height: 1.5;
}

.drb-ch-line {
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.drb-ch-label {
  font-weight: 600;
  color: var(--drb-text);
}

.drb-card .drb-btn {
  margin-top: auto;
  padding: 7px 14px;
  font-size: 13px;
  align-self: flex-start;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .drb-cards {
    grid-template-columns: 1fr;   /* ✅ Mobile এ এক column */
    gap: 14px;
  }
  .drb-card { padding: 14px; gap: 12px; }
  .drb-card .thumb { width: 76px; height: 94px; }
  .drb-title { font-size: 15px; }
}

/* ══════════════════════════════════════════
   Single Doctor Page
   ══════════════════════════════════════════ */

.drb-single-doctor {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px var(--drb-shell-pad);
}

.drb-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-size: 13px;
  color: var(--drb-text-soft);
}

.drb-breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 6px;
  color: var(--drb-text-muted);
}

.drb-breadcrumb a {
  color: var(--drb-text-soft);
  text-decoration: none;
}
.drb-breadcrumb a:hover { color: var(--drb-primary); }

.drb-profile-head {
  display: flex;
  flex-wrap: wrap;                /* ✅ wrap on small */
  gap: 24px;
  margin-bottom: 32px;
}

.drb-profile-photo {
  width: 200px;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--drb-shadow-lg);
  flex-shrink: 0;
}

.drb-profile-info {
  flex: 1 1 300px;                /* ✅ shrinkable */
  min-width: 0;
  overflow-wrap: break-word;
}
.drb-profile-info h1 { margin: 0 0 12px; }
.drb-profile-info p { margin-bottom: 6px; font-size: 15px; }

@media (max-width: 640px) {
  .drb-profile-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .drb-profile-photo { width: 160px; height: 200px; }
}

.drb-chambers-full,
.drb-related {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--drb-border);
}

.drb-chambers-full h2,
.drb-related h2 { margin-bottom: 20px; }

.drb-chamber-item {
  padding: 16px 20px;
  background: var(--drb-bg-soft);
  border-radius: 10px;
  margin-bottom: 12px;
  border-left: 4px solid var(--drb-primary);
  overflow-wrap: break-word;
}

.drb-chamber-item h3 { margin: 0 0 6px; font-size: 16px; }
.drb-chamber-item p { margin: 3px 0; font-size: 14px; color: var(--drb-text-soft); }



/* ==========================================
   Hospital Cards
   ========================================== */

.drb-hospital-card {
  flex-direction: column;
  align-items: flex-start;
  text-align: center;
}

.drb-hospital-logo {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--drb-bg-soft);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.drb-hospital-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.drb-hospital-icon {
  font-size: 48px;
  line-height: 1;
  color: var(--drb-primary);
}

.drb-hospital-card .body {
  width: 100%;
  text-align: left;
}

.drb-hosp-type-badge {
  display: inline-block;
  padding: 2px 10px;
  background: var(--drb-primary-light);
  color: var(--drb-primary-dark);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.drb-hosp-phone {
  font-size: 13px;
  color: var(--drb-text);
  margin: 4px 0;
}

.drb-hosp-phone a {
  color: var(--drb-primary);
  font-weight: 600;
}

/* ==========================================
   Static Pages
   ========================================== */

.drb-page {
  max-width: 900px;
}

.drb-page-header {
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--drb-border);
}

.drb-page-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.drb-page-content {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--drb-text);
}

.drb-page-content h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: var(--drb-text);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--drb-border);
}

.drb-page-content h2:first-child {
  margin-top: 0;
}

.drb-page-content ul,
.drb-page-content ol {
  padding-left: 24px;
  margin: 12px 0;
}

.drb-page-content li {
  margin-bottom: 6px;
}

.drb-page-content a {
  color: var(--drb-primary);
  text-decoration: underline;
}

/* Warning box */
.drb-warning-box {
  padding: 16px 20px;
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #78350f;
}

/* Contact grid */
.drb-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.drb-contact-card {
  padding: 20px;
  background: var(--drb-bg-soft);
  border: 1px solid var(--drb-border);
  border-radius: 10px;
  transition: all .15s;
}

.drb-contact-card:hover {
  border-color: var(--drb-primary);
  box-shadow: var(--drb-shadow-md);
}

.drb-contact-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--drb-text);
}

.drb-contact-card p {
  margin: 0;
  font-size: 14px;
  color: var(--drb-text-soft);
  line-height: 1.6;
}

.drb-contact-card a {
  color: var(--drb-primary);
  text-decoration: none;
  font-weight: 600;
}

