/*
Theme Name: DoctorSearchBD
Theme URI: https://doctorsearchbd.com
Author: DoctorSearchBD Team
Author URI: https://doctorsearchbd.com
Description: A verified doctor & hospital directory theme for Bangladesh with specialty-wise and hospital-wise search, sponsored listings, SEO schema, and full mobile responsiveness.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doctorsearchbd
Tags: medical, doctor directory, hospital, responsive, seo-friendly
*/

/* =========================================================
   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; }




/* =========================================================
   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 8px; /* Added bottom margin */
  display: block;
  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;
}

.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: #ffffff;
  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; }
}

/* Standard Button */
.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; }

/* Main Grid Style Card */
.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, .avatar img {
  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, .meta { font-size: 13px; color: #334155; margin-top: 4px; }
.doctor-card .doc-specialty, .tag.red { 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); }

/* Mobile Adjustments */
@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, .avatar img { width: 64px; height: 64px; }
}

/* =========================================================
   7. SINGLE DOCTOR PROFILE
   ========================================================= */
.profile-top, .doc-profile-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
  display: flex; /* Flex is better than grid here for responsiveness */
  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 / Standard Box */
.info-box, .box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  margin-bottom: 16px;
  overflow: hidden;
}
.info-head, .box-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 900;
  font-size: 18px;
}
.info-head h2, .box-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, .box-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; }

@media (max-width: 768px){
  .profile-top, .doc-profile-card { flex-direction: column; }
  .profile-name { font-size: 22px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-right { display: flex; justify-content: flex-end; }
}

/* =========================================================
   8. FOOTERS
   ========================================================= */

/* Main Footer */
.dsbd-footer { background: #0f172a; color: #e5e7eb; padding: 32px 0; }
.footer-wrap { display: flex; flex-direction: column; gap: 20px; }
.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 (Alternative) */
.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; }
}