/* ============================================================
   EthosMedi — Doctors Page CSS
   ============================================================ */

/* ============================================================
   PAGE HERO
   ============================================================ */
.dr-hero {
  background: #ffffff;
  padding: 48px 0 20px;
}

/* Breadcrumb */
.dr-breadcrumb {
  margin-bottom: 20px;
}
.dr-breadcrumb .breadcrumb {
  font-size: 13px;
  margin: 0;
  padding: 0;
  background: none;
}
.dr-breadcrumb .breadcrumb-item a {
  color: var(--cp-muted, #6b7280);
  text-decoration: none;
  transition: color 0.2s;
}
.dr-breadcrumb .breadcrumb-item a:hover { color: var(--cp-red, #1B4DB8); }
.dr-breadcrumb .breadcrumb-item.active { color: var(--cp-teal, #1B4DB8); font-weight: 600; }
.dr-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  color: var(--cp-muted, #6b7280);
}

.dr-hero-title {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800;
  color: var(--cp-text, #1a1a2e);
  line-height: 1.18;
  margin-bottom: 14px;
}
.dr-hero-sub {
  font-size: 15px;
  color: var(--cp-muted, #6b7280);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

/* Search bar */
.dr-search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}
.dr-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cp-muted, #6b7280);
  font-size: 16px;
  pointer-events: none;
}
.dr-search-input {
  width: 100%;
  border: 1.5px solid var(--cp-border, #e5e7eb);
  border-radius: 100px;
  padding: 13px 20px 13px 46px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--cp-text, #1a1a2e);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.dr-search-input:focus {
  border-color: var(--cp-teal, #1B4DB8);
  box-shadow: 0 0 0 3px rgba(0,150,136, 0.10);
}
.dr-search-input::placeholder { color: #b0b7c0; }

/* Filter pills */
.dr-filter-pill {
  border: 1.5px solid var(--cp-border, #e5e7eb);
  border-radius: 100px;
  padding: 8px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--cp-teal, #1B4DB8);
  background: #ffffff;
  transition: border-color 0.2s, background 0.2s;
}
.dr-filter-pill:hover,
.dr-filter-pill:focus,
.dr-filter-pill.show {
  border-color: var(--cp-teal, #1B4DB8);
  background: var(--cp-bg, #F0FBF9);
  color: var(--cp-teal, #1B4DB8);
}
.dr-clear-pill {
  border: 1.5px solid var(--cp-border, #e5e7eb);
  border-radius: 100px;
  padding: 8px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--cp-muted, #6b7280);
  background: #ffffff;
  transition: all 0.2s;
}
.dr-clear-pill:hover {
  border-color: var(--cp-red, #C0392B);
  color: var(--cp-red, #C0392B);
  background: var(--cp-red-lt, #FDECEA);
}

/* Dropdown */
.dr-dropdown {
  border-radius: 12px;
  border: 1px solid var(--cp-border, #e5e7eb);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 6px;
  min-width: 180px;
}
.dr-dd-item {
  font-size: 13px;
  font-weight: 500;
  color: var(--cp-teal, #1B4DB8);
  border-radius: 8px;
  padding: 10px 14px;
  transition: background 0.15s;
}
.dr-dd-item:hover { background: var(--cp-bg, #F0FBF9); color: var(--cp-teal, #1B4DB8); }

/* ============================================================
   DOCTORS GRID
   ============================================================ */
.dr-grid-section {
  background: #ffffff;
  padding: 20px 0 64px;
}

/* Doctor card */
.dr-card {
  background: var(--cp-bg, #F0FBF9);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}
.dr-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,150,136, 0.12);
  border-color: var(--cp-teal-lt, #E0F5F3);
}

/* Card image */
.dr-card-img {
  height: 240px;
  overflow: hidden;
  background: #e8f4f8;
  flex-shrink: 0;
}
.dr-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s;
}
.dr-card:hover .dr-card-img img { transform: scale(1.04); }

/* Card body */
.dr-card-body {
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.dr-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.dr-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--cp-text, #1a1a2e);
}
.dr-verified { width: 18px; height: 18px; object-fit: contain; }

/* Tags */
.dr-tag-spec {
  background: rgba(255,255,255,0.9);
  color: var(--cp-teal, #1B4DB8);
  border: 1px solid var(--cp-border, #e5e7eb);
  border-radius: 100px;
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 500;
}
.dr-tag-exp {
  display: inline-flex;
  align-items: center;
  background: var(--cp-red-bg, #f0f4fa);
  color: var(--cp-red, #1B4DB8);
  border-radius: 100px;
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 500;
}
.dr-bio {
  font-size: 13px;
  color: var(--cp-muted, #6b7280);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

/* View Profile button */
.dr-view-btn {
  display: block;
  text-align: center;
  padding: 11px 0 0;
  border-top: 1px solid var(--cp-border, #e5e7eb);
  font-size: 13px;
  font-weight: 600;
  color: var(--cp-teal, #1B4DB8);
  text-decoration: none;
  transition: color 0.2s;
}
.dr-view-btn:hover { color: var(--cp-red, #1B4DB8); }

/* No results */
.dr-no-results { text-align: center; }

/* ============================================================
   PAGINATION
   ============================================================ */
.dr-pagination { margin-top: 40px; }

.dr-pg-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--cp-border, #e5e7eb);
  background: #ffffff;
  color: var(--cp-teal, #1B4DB8);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dr-pg-num:hover {
  border-color: var(--cp-teal, #1B4DB8);
  background: var(--cp-bg, #F0FBF9);
}
.dr-pg-num.dr-pg-active {
  background: var(--cp-teal, #1B4DB8);
  border-color: var(--cp-teal, #1B4DB8);
  color: #ffffff;
}

.dr-pg-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--cp-border, #e5e7eb);
  background: #ffffff;
  color: var(--cp-teal, #1B4DB8);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.dr-pg-arrow:hover:not(:disabled) {
  border-color: var(--cp-teal, #1B4DB8);
  background: var(--cp-bg, #F0FBF9);
}
.dr-pg-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.dr-pg-ellipsis {
  font-size: 16px;
  color: var(--cp-muted, #6b7280);
  padding: 0 4px;
}

/* ============================================================
   INSIGHTS
   ============================================================ */
.dr-insights-section { background: var(--cp-bg, #F0FBF9); }

/* ============================================================
   FAQ SECTION — white card style
   ============================================================ */

/* Section background: same light beige as Figma */
.dr-faq-section {
  background: var(--cp-bg, #F0FBF9);
}

/* White card that wraps the two-column layout */
.dr-faq-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 52px 48px;
  box-shadow: 0 4px 28px rgba(0,150,136, 0.07);
}

/* Accordion overrides — cleaner white-on-white look */
.dr-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dr-acc-item {
  border: 1px solid var(--cp-border, #e5e7eb) !important;
  border-radius: 12px !important;
  overflow: hidden;
  background: #ffffff;
}
.dr-acc-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--cp-text, #1a1a2e) !important;
  background: #ffffff !important;
  padding: 18px 22px;
  border: none !important;
  box-shadow: none !important;
}
.dr-acc-btn:not(.collapsed) {
  background: #ffffff !important;
  color: var(--cp-text, #1a1a2e) !important;
  box-shadow: none !important;
}
/* Custom chevron icon */
.dr-acc-btn::after {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background-color: var(--cp-bg, #F0FBF9);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231B4DB8'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
  transition: transform 0.25s, background-color 0.2s;
}
.dr-acc-btn:not(.collapsed)::after {
  transform: rotate(-180deg);
  background-color: var(--cp-teal, #1B4DB8);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}
.dr-acc-body {
  font-size: 14px;
  color: var(--cp-muted, #6b7280);
  line-height: 1.75;
  padding: 0 22px 18px;
}

/* ============================================================
   CTA CARD

   ============================================================ */
.dr-cta-card {
  background: linear-gradient(135deg, #004D40 0%, #009688 55%, #1B4DB8 100%);
  border-radius: 20px;
  padding: 52px 52px;
  color: #ffffff;
  overflow: hidden;
}
.dr-cta-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}
.dr-cta-desc {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.75;
  max-width: 380px;
}
.dr-cta-btn {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 100px;
  padding: 12px 26px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
.dr-cta-btn:hover {
  background: rgba(255,255,255,0.22);
  color: #ffffff;
  border-color: #ffffff;
}
.dr-cta-img {
  border-radius: 14px;
  max-height: 280px;
  object-fit: cover;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .dr-cta-card { padding: 40px 36px; }
  .dr-faq-card { padding: 40px 32px; }
}

@media (max-width: 767.98px) {
  .dr-hero { padding: 36px 0 16px; }
  .dr-hero-title { font-size: 26px; }
  .dr-hero-sub { font-size: 14px; }
  .dr-card-img { height: 200px; }
  .dr-cta-card { padding: 30px 20px; }
  .dr-cta-img { max-height: 220px; }
  .dr-faq-card { padding: 28px 20px; }
  .dr-acc-btn { font-size: 14px; padding: 16px 18px; }
}
