/* =========================================================
   DoctorSearchBD – MAIN CSS (CLEANED)
   File: assets/css/main.css
   ========================================================= */

/* ================= 1. RESET & GLOBAL ================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  color: #0f172a;
  background: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; transition: opacity 0.2s; }
a:hover { opacity: 0.9; }
img { max-width: 100%; height: auto; display: block; }

/* Sticky Footer Helper */
.dsbd { flex: 1; padding-bottom: 40px; }

/* ================= 2. LAYOUT ================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

@media (max-width: 600px) {
  .container { padding: 0 14px; }
}

/* ================= 3. HEADER & LOGO ================= */
.dsbd-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.header-btn {
  background: #2563eb;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
}

.dsbd-header-spacer { height: 10px; }

/* --- Brand / Logo (SOLID like screenshot) --- */
.header-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Doctor text */
.header-brand .logo .logo-word {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: #0f172a !important;

  /* ✅ cancel gradient */
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

/* Search text */
.header-brand .logo .logo-word.accent {
  color: #1abc9c !important;

  /* ✅ cancel gradient */
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

/* BD pill */
.header-brand .logo .logo-pill {
  background: #1abc9c;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  padding: 8px 8px;
  border-radius: 6px;
  line-height: 1;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile */
@media (max-width: 600px) {
  .header-brand .logo .logo-word { font-size: 22px; }
  .header-brand .logo .logo-pill { font-size: 14px; padding: 3px 8px; }
}




/* ================= 4. HERO & SEARCH ================= */
.hero {
  background: linear-gradient(180deg, #eff6ff, #f8fafc);
  padding: 32px 0 40px;
  text-align: center;
}

.title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 auto;
  display: block;
  /* Brand Gradient */
  background: linear-gradient(90deg, #1d4ed8, #06b6d4, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 18px;
  color: #334155;
  text-align: center;
  margin-top: 8px;
}

.search-box { margin-top: 18px; }

.search-form {
  display: flex;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  max-width: 600px;
  margin: 0 auto; /* Centered */
}

.search-form input {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-size: 16px;
  outline: none;
}

.search-form button {
  border: none;
  background: #2563eb;
  color: #fff;
  width: 56px;
  cursor: pointer;
  transition: background 0.2s;
}
.search-form button:hover { background: #1d4ed8; }

@media (max-width: 600px) {
  .title { font-size: 28px; }
}

/* ================= 5. UI COMPONENTS ================= */

/* Tabs */
.dsbd-tabs, .dsbd-top-tabs {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.tab, .top-tab {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  background: #e5e7eb;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}
.tab.active, .top-tab.active {
  background: #2563eb;
  color: #fff;
}

/* Location Buttons */
.location-buttons {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.loc-btn {
  background: #1abc9c;
  color:#fff;
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
}
@media (max-width: 420px){
  .loc-btn { font-size: 13px; }
}

/* Page Top Card */
.page-top-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}
.page-title { font-size: 22px; font-weight: 900; }
.page-subtitle { font-size: 14px; color: #475569; }
.page-desc { margin-top: 10px; font-size: 14px; color: #334155; }
.page-hospital-name { margin-top: 10px; font-size: 20px; font-weight: 1000; }

@media (max-width: 600px){
  .page-title { font-size: 18px; }
}

/* Tags & Mini Badges */
.section-title { font-size: 18px; font-weight: 900; margin: 20px 0 12px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-tag {
  background: #eff6ff;
  color: #2563eb;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.ads-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg,#f59e0b,#f97316);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(249,115,22,0.35);
  z-index: 10;
}
@media (max-width: 600px){
  .ads-badge { top: 8px; right: 8px; font-size: 10px; padding: 4px 9px; }
}

/* Buttons */
.btn {
  background: #2563eb;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  display: inline-block;
  text-align: center;
}

/* Forms */
.dsbd-form {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
}
.dsbd-form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dsbd-form label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 4px;}
.dsbd-form input, .dsbd-form select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 16px;
}
@media (max-width: 600px){
  .dsbd-form .grid { grid-template-columns: 1fr; }
}

/* Alerts */
.dsbd-alert { padding: 12px 14px; border-radius: 12px; font-weight: 800; }
.dsbd-alert.success { background: #dcfce7; color: #166534; }
.dsbd-alert.error { background: #fee2e2; color: #7f1d1d; }

/* ================= 6. DOCTOR LIST CARDS ================= */
.doctor-list { display: grid; gap: 16px; }

/* VARIANT 1: GRID STYLE (Main) */
.doctor-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 88px 1fr auto; /* Premium layout */
  gap: 18px;
  align-items: center;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  border: 1px solid #e5e7eb;
}

.doctor-card .doc-photo img, .ph {
  width:110px;
  height: auto;
  display: block;
  border-radius:10px;
  object-fit: contain;          /* ✅ no crop */
  object-position: center;
  border:2px solid #2563eb;
  background:#fff;
}


.doctor-card .doc-name {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.doctor-card .verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
}

.doctor-card .doc-degrees { font-size: 14px; color: #334155; margin-top: 4px; }
.doctor-card .doc-specialty { font-size: 14px; color: #dc2626; font-weight: 600; margin-top: 4px; }
.doctor-card .doc-meta { font-size: 13px; color: #475569; margin-top: 4px; }

.doctor-card .doc-right { display: flex; align-items: center; justify-content: center; }

.doctor-card .btn-chamber {
  background: #2563eb;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: .2s ease;
}
.doctor-card .btn-chamber:hover { background: #1d4ed8; transform: translateY(-1px); }

/* Tablet/Mobile Adjustments for Grid Card */
@media (max-width: 900px){
  .doctor-card { grid-template-columns: 80px 1fr; }
  .doctor-card .doc-right { grid-column: 1 / -1; width: 100%; margin-top: 12px; }
  .doctor-card .btn-chamber { width: 100%; text-align: center; }
}
@media (max-width: 600px){
  .doctor-card { padding: 12px; gap: 12px; }
  .doctor-card .doc-photo img, .ph { width: 64px; height: 64px; }
}

/* VARIANT 2: FLEX STYLE (.dsbd-card) */
.dsbd-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  margin-bottom: 16px;
}

.dsbd-card-photo { flex: 0 0 auto; }
.dsbd-photo{
  width:110px;
  height: auto;
  display: block;
  border-radius:10px;
  object-fit: contain;          /* ✅ no crop */
  object-position: center;
  border:2px solid #2563eb;
  background:#fff;
}


.dsbd-card-info { flex: 1; min-width: 0; }
.dsbd-rating { font-size: 13px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.dsbd-stars { letter-spacing: 1px; }
.dsbd-count { color: #475569; }

.dsbd-name {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}

.dsbd-line { font-size: 14px; color: #1f2937; margin-top: 4px; }
.dsbd-spec { color: #dc2626; font-weight: 700; }
.dsbd-muted { color: #475569; }

.dsbd-card-cta { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.see-chamber-btn {
  background: #2563eb;
  color: #fff;
  padding: 12px 18px;
  border-radius: 5px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 10px 18px rgba(37,99,235,.18);
  transition: .15s ease;
}
.see-chamber-btn:hover { background: #1d4ed8; transform: translateY(-1px); }

@media (max-width: 768px){
  .dsbd-card { flex-direction: column; align-items: flex-start; }
  .dsbd-card-cta { width: 100%; justify-content: flex-end; margin-top: 8px; }
  .see-chamber-btn { width: 100%; text-align: center; }
  .dsbd-name { font-size: 18px; }
  .dsbd-photo { width: 80px; height: 110px; }
}

/* ================= 7. SINGLE DOCTOR PROFILE ================= */
.profile-top {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  margin-bottom: 18px;
}

.profile-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid #2563eb;
  background: #fff;
}

.profile-info { flex: 1; }
.profile-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }

.profile-name {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
}
.profile-line { font-size: 14px; color: #1f2937; margin-top: 6px; }
.profile-spec { color: #dc2626; font-weight: 700; }
.profile-muted { color: #475569; }

/* Info Box */
.info-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  margin-bottom: 16px;
  overflow: hidden;
}
.info-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 900;
}
.info-head h2 { margin: 0; font-size: 18px; font-weight: 900; }

.info-ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 16px;
}

.info-body { padding: 16px; }
.info-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.info-title { font-weight: 900; font-size: 16px; margin-bottom: 8px; }
.info-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: #334155;
  margin-top: 8px;
}
.row-ico { width: 18px; display: inline-flex; justify-content: center; opacity: .9; }
.phone-link { color: #2563eb; font-weight: 800; }

.btn-book {
  background: #2563eb;
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 18px rgba(37,99,235,.18);
}
.btn-book:hover { background: #1d4ed8; }

.about-text { font-size: 14px; line-height: 1.7; color: #334155; }

/* Mobile Profile */
@media (max-width: 768px){
  .profile-top { flex-direction: column; }
  .profile-name { font-size: 22px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-right { display: flex; justify-content: flex-end; }
}

/* ================= 8. FOOTERS ================= */

/* Standard Footer */
.dsbd-footer { background: #0f172a; color: #e5e7eb; padding: 32px 0; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-title { font-weight: 900; margin-bottom: 8px; }
.footer-menu li { margin-bottom: 6px; }
.footer-menu a { color: #cbd5f5; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 12px; font-size: 13px; }

/* Simple/Clean Footer */
.dsbd-footer-simple {
  background: #0f172a;
  padding: 26px 0 30px;
  color: #cbd5e1;
}
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
}
.footer-nav a { color: #cbd5e1; opacity: .9; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }

.footer-divider {
  height: 1px;
  background: rgba(148,163,184,.25);
  margin: 18px auto 14px;
  max-width: 900px;
}
.footer-copy { text-align: center; font-size: 12px; color: rgba(203,213,225,.75); }

@media (max-width: 600px){
  .footer-top { grid-template-columns: 1fr; }
  .footer-nav { gap: 12px; }
  .footer-divider { margin: 14px auto 12px; }
}

/* =========================================================
   SINGLE DOCTOR (Carbon Copy)
   ========================================================= */
.single-wrap { padding: 22px 0 44px; }

.doc-profile-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:18px;
  display:flex;
  gap:16px;
  align-items:flex-start;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  margin-bottom: 16px;
}

.doc-profile-card .doc-photo{
  flex: 0 0 auto;
}

.doc-profile-card .doc-photo img,
.doc-profile-card .doc-photo .ph{
  width:110px;
  height: auto;
  display: block;
  border-radius:10px;
  object-fit: contain;          /* ✅ no crop */
  object-position: center;
  border:2px solid #2563eb;
  background:#fff;
  
}


.doc-profile-card .doc-info{
  flex:1;
  min-width:0;
}

.rating-row{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  margin-bottom: 6px;
}
.rating-row .stars{
  letter-spacing:1px;
}
.rating-row .count{
  color:#64748b;
  font-weight:700;
}

.doc-title{
  margin:0 0 8px;
  font-size:26px;
  line-height:1.2;
  font-weight:900;
  display:flex;
  align-items:center;
  gap:8px;
  color:#0f172a;
}

.blue-check{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#2563eb;
  color:#fff;
  font-size:12px;
  font-weight:900;
}

.doc-line{
  margin:6px 0 0;
  font-size:14px;
  color:#1f2937;
}
.spec-red{ color:#dc2626; font-weight:700; }
.muted{ color:#64748b; }

/* Box (Chamber / About) – matches screenshot */
.box{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
  margin-bottom: 14px;
}

.box-head{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  border-bottom:1px solid #e5e7eb;
  font-weight:900;
}

.box-head h2{
  margin:0;
  font-size:16px;
  font-weight:900;
}

.box-icon{
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:#eff6ff;
  color:#2563eb;
  font-size:16px;
}

.box-body{
  padding:16px;
}

.chamber-grid{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:16px;
  align-items:center;
}

.ch-left h3{
  margin:0 0 8px;
  font-size:16px;
  font-weight:900;
  color:#0f172a;
}

.ch-left p{
  margin:8px 0 0;
  font-size:14px;
  color:#334155;
}

.ch-left a{
  color:#2563eb;
  font-weight:800;
}

.btn.big{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#2563eb;
  color:#fff;
  padding:12px 18px;
  border-radius:12px;
  font-weight:900;
  white-space:nowrap;
  box-shadow: 0 10px 18px rgba(37,99,235,.18);
  transition:.15s ease;
}
.btn.big:hover{ background:#1d4ed8; transform: translateY(-1px); }

.about{
  font-size:14px;
  line-height:1.75;
  color:#334155;
}

/* Mobile */
@media (max-width: 768px){
  .doc-profile-card{ flex-direction:column; }
  .doc-title{ font-size:22px; }
  .chamber-grid{ grid-template-columns:1fr; }
  .ch-right{ display:flex; justify-content:flex-end; }
  .btn.big{ width:100%; }
}

/* Specialty Buttons (A–Z list like screenshot #2) */
.dsbd-spec-buttons{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:14px;
}

.dsbd-spec-btn{
  display:block;
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:12px 14px;
  font-weight:800;
  text-align:center;
  color:#2563eb;
  box-shadow: 0 6px 16px rgba(15,23,42,.05);
  transition:.15s ease;
}

.dsbd-spec-btn:hover{
  transform: translateY(-1px);
  border-color:#c7d2fe;
}

/* ===== Top Context Buttons (Single Doctor Page) ===== */
.dsbd-top-context {
  display: flex;
  gap: 12px;
  margin: 14px 0 18px;
  flex-wrap: wrap;
}

.ctx-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #1d4ed8;
  transition: all .2s ease;
}

.ctx-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
}

.ctx-btn.loc {
  color: #2563eb;
}

.ctx-btn.spec {
  color: #0f766e;
}

/* Doctor Profile quick buttons (Location + Specialty) */
.doc-quick-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 10px 0 6px;
}

.doc-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background:#ffffff;
  font-weight: 800;
  font-size: 13px;
  color:#2563eb;
  box-shadow: 0 6px 16px rgba(15,23,42,.05);
  transition: .15s ease;
}

.doc-chip:hover{
  transform: translateY(-1px);
  border-color:#c7d2fe;
}

.ch-left h3 a:hover {
  text-decoration: underline;
  color: #0369a1;
}

/* Hospital list same as Specialty list */
.spec-list { display: grid; gap: 12px; margin-top: 14px; }
.spec-item{
  display:block;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 800;
  text-align:center;
  box-shadow: 0 8px 20px rgba(15,23,42,.04);
}
.spec-item:hover{ border-color:#2563eb; }

/* === Submit Doctor: Add Chamber Button === */
.chamber-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.btn.btn-sm {
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 8px;
  font-weight: 700;
  background: #2563eb;
}

.btn.btn-sm:hover {
  background: #1d4ed8;
}
