/**
 * Doctor grid card — overrides global .single-content-area heading/paragraph styles.
 */

.single-content-area .medexly-doctor-grid-card .medexly-doctor-card-name,
.medexly-doctor-grid-card .medexly-doctor-card-name {
  font-size: 1.375rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 0.5rem !important;
  text-transform: none !important;
  color: #111827 !important;
}

.single-content-area .medexly-doctor-grid-card .medexly-doctor-card-name a,
.medexly-doctor-grid-card .medexly-doctor-card-name a {
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  border-bottom: none !important;
  text-decoration: none !important;
}

.single-content-area .medexly-doctor-grid-card .medexly-doctor-card-degree,
.medexly-doctor-grid-card .medexly-doctor-card-degree {
  font-size: 0.8125rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  margin: 0 0 0.625rem !important;
  color: #6b7280 !important;
}

.medexly-doctor-grid-card .medexly-doctor-card-book-btn,
.medexly-doctor-grid-card .medexly-doctor-card-book-btn span,
.medexly-doctor-grid-card .medexly-doctor-card-book-btn i {
  color: #ffffff !important;
  border-bottom: none !important;
  font-weight: 600 !important;
}

.single-content-area .medexly-doctor-grid-card a.medexly-doctor-card-book-btn,
.single-content-area .medexly-doctor-grid-card a.medexly-doctor-card-book-btn:hover,
.single-content-area .medexly-doctor-grid-card a.medexly-doctor-card-photo-link,
.single-content-area .medexly-doctor-grid-card a.medexly-doctor-card-photo-link:hover {
  border-bottom: none !important;
  margin: 0 !important;
}

.single-content-area .medexly-doctor-grid-card a.medexly-doctor-card-book-btn,
.single-content-area .medexly-doctor-grid-card a.medexly-doctor-card-book-btn:hover {
  color: #ffffff !important;
}

@media (min-width: 640px) {
  .medexly-doctor-grid-card .medexly-doctor-card-name {
    font-size: 1.25rem !important;
  }
}

@media (min-width: 1024px) {
  .medexly-doctor-grid-card .medexly-doctor-card-name {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 639px) {
  .medexly-doctor-grid-card .medexly-doctor-card-photo-link {
    display: block !important;
    width: 100% !important;
    max-width: 200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-bottom: none !important;
  }

  .medexly-doctor-grid-card .medexly-doctor-card-photo-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding-top: 0 !important;
  }

  .medexly-doctor-grid-card .medexly-doctor-card-photo {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-height: 180px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
  }

  .dark .medexly-doctor-grid-card .medexly-doctor-card-photo,
  html.dark .medexly-doctor-grid-card .medexly-doctor-card-photo {
    border-color: #4b5563 !important;
  }

  .single-content-area .medexly-doctor-grid-card .medexly-doctor-card-name,
  .medexly-doctor-grid-card .medexly-doctor-card-name {
    color: #111827 !important;
  }

  html.dark .single-content-area .medexly-doctor-grid-card .medexly-doctor-card-name,
  html.dark .medexly-doctor-grid-card .medexly-doctor-card-name {
    color: #ffffff !important;
  }
}

@media (min-width: 640px) {
  .medexly-doctor-grid-card .medexly-doctor-card-photo {
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
  }

  .dark .medexly-doctor-grid-card .medexly-doctor-card-photo,
  html.dark .medexly-doctor-grid-card .medexly-doctor-card-photo {
    border-color: #4b5563 !important;
  }
}

/* Shortcode chambers — clean border-left layout, no backgrounds */
.single-content-area .medexly-shortcode-chambers h3,
.single-content-area .medexly-shortcode-chambers h4,
.medexly-shortcode-chambers__title {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  text-transform: none !important;
  color: #111827 !important;
}

@media (min-width: 640px) {
  .single-content-area .medexly-shortcode-chambers h4,
  .medexly-shortcode-chambers__title {
    font-size: 1.375rem !important;
  }
}

@media (min-width: 1024px) {
  .single-content-area .medexly-shortcode-chambers h4,
  .medexly-shortcode-chambers__title {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 639px) {
  .single-content-area .medexly-shortcode-chambers h4,
  .medexly-shortcode-chambers__title {
    font-size: 1.125rem !important;
    line-height: 1.4 !important;
  }

  .medexly-shortcode-chambers__count {
    font-size: 0.875rem !important;
  }
}

.medexly-shortcode-chambers__count {
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
}

html.dark .medexly-shortcode-chambers__title {
  color: #ffffff !important;
}

html.dark .medexly-shortcode-chambers__count {
  color: #9ca3af !important;
}

.medexly-shortcode-chambers__list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.medexly-shortcode-chamber-card {
  background: transparent !important;
  border: none !important;
  border-left: 3px solid #2563eb !important;
  border-bottom: 1px solid #e5e7eb !important;
  padding: 1rem 0 1rem 1rem !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.medexly-shortcode-chamber-card:last-child {
  border-bottom: none !important;
}

html.dark .medexly-shortcode-chamber-card {
  border-left-color: #3b82f6 !important;
  border-bottom-color: #374151 !important;
}

.single-content-area .medexly-shortcode-chambers ul,
.medexly-shortcode-chamber-card__meta {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.single-content-area .medexly-shortcode-chambers li,
.medexly-shortcode-chamber-card__row {
  font-size: 1rem !important;
  line-height: 1.6 !important;
  margin: 0 0 0.5rem !important;
  padding: 0 0 0 0 !important;
  color: #374151 !important;
}

.medexly-shortcode-chamber-card__row:last-child {
  margin-bottom: 0 !important;
}

html.dark .medexly-shortcode-chamber-card__row {
  color: #d1d5db !important;
}

.medexly-shortcode-chamber-card__label {
  font-weight: 600 !important;
  color: #111827 !important;
  margin-right: 0.35rem !important;
}

.medexly-shortcode-chamber-card__row--name {
  margin-bottom: 0.625rem !important;
}

.medexly-shortcode-chamber-card__name,
.single-content-area .medexly-shortcode-chamber-card__name,
.medexly-shortcode-chamber-card__row--name .medexly-shortcode-chamber-card__hospital-link {
  display: inline !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  color: #111827 !important;
}

html.dark .medexly-shortcode-chamber-card__name,
html.dark .medexly-shortcode-chamber-card__row--name .medexly-shortcode-chamber-card__hospital-link {
  color: #f9fafb !important;
}

@media (min-width: 640px) {
  .medexly-shortcode-chamber-card__name,
  .medexly-shortcode-chamber-card__row--name .medexly-shortcode-chamber-card__hospital-link {
    font-size: 1.1875rem !important;
  }
}

html.dark .medexly-shortcode-chamber-card__label {
  color: #f3f4f6 !important;
}

.single-content-area .medexly-shortcode-chambers li::before,
.medexly-shortcode-chamber-card__row::before {
  content: none !important;
  display: none !important;
}

.single-content-area .medexly-shortcode-chambers a,
.single-content-area .medexly-shortcode-chambers a:hover,
.medexly-shortcode-chamber-card__hospital-link,
.medexly-shortcode-chamber-card__phone,
.medexly-shortcode-chambers__see-all,
.medexly-shortcode-chambers__see-all:hover {
  border-bottom: none !important;
  margin: 0 !important;
  text-decoration: none !important;
}

.single-content-area .medexly-shortcode-chamber-card__hospital-link,
.medexly-shortcode-chamber-card__hospital-link,
.single-content-area .medexly-shortcode-chamber-card__phone,
.medexly-shortcode-chamber-card__phone {
  color: #2563eb !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
}

.medexly-shortcode-chamber-card__row--name .medexly-shortcode-chamber-card__hospital-link {
  color: #2563eb !important;
  font-weight: 600 !important;
}

.medexly-shortcode-chambers__footer {
  margin-top: 0.75rem !important;
  padding-top: 0.25rem !important;
}

.single-content-area .medexly-shortcode-chambers__see-all,
.medexly-shortcode-chambers__see-all {
  display: inline-block !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #2563eb !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

html.dark .medexly-shortcode-chambers__see-all {
  color: #60a5fa !important;
}

html.dark .medexly-shortcode-chamber-card__hospital-link,
html.dark .medexly-shortcode-chamber-card__phone {
  color: #60a5fa !important;
}

/* Reset semantic wrappers so layout matches pre-refactor output */
.medexly-doctor-grid-card header,
.medexly-doctor-grid-card footer,
.medexly-shortcode-chambers header,
.medexly-shortcode-chambers footer {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.single-content-area .medexly-shortcode-chamber-card__address,
.medexly-shortcode-chamber-card__address {
  font-style: normal !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Single doctor page — semantic element resets */
.doctor-single-page .doctor-profile-header footer,
.doctor-single-page address.not-italic {
  background: transparent;
  border: none;
  font-style: normal;
  margin: 0;
  padding: 0;
}
