/* Individual doctor profile — match Nano layout, TruScan green. */

.dpd-page.main-content.site-wrapper-reveal,
.dpd-page {
  --dpd-green: #2d661b;
  --dpd-green-dark: #245416;
  --dpd-green-soft: #eef6e6;
  --dpd-green-mid: #86c46a;
  background: #e6e6e6 !important;
  overflow: visible;
}

.dpd-page h1,
.dpd-page h2,
.dpd-page h3,
.dpd-page p {
  margin: 0;
}

.dpd-hero {
  width: 100%;
  padding: 64px 0;
  background: #e6e6e6;
}

.dpd-hero__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .dpd-hero__inner {
    padding: 0 24px;
  }
}

@media (min-width: 1280px) {
  .dpd-hero__inner {
    padding: 0 32px;
  }
}

.dpd-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

@media (min-width: 1024px) {
  .dpd-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }
}

@media (min-width: 1280px) {
  .dpd-layout {
    gap: 64px;
  }
}

.dpd-photo-col {
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}

@media (min-width: 1024px) {
  .dpd-photo-col {
    align-items: flex-start;
  }
}

.dpd-photo {
  width: 260px;
  height: 320px;
  overflow: hidden;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(17, 24, 39, 0.25);
}

.dpd-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: top center !important;
}

@media (min-width: 640px) {
  .dpd-photo {
    width: 300px;
    height: 360px;
  }
}

@media (min-width: 1280px) {
  .dpd-photo {
    width: 340px;
    height: 400px;
  }
}

.dpd-book {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 260px;
  margin-top: 48px;
  padding: 14px 24px;
  background: var(--dpd-green);
  color: #fff !important;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(45, 102, 27, 0.35);
  transition: background 0.2s ease;
}

.dpd-book:hover,
.dpd-book:focus-visible {
  background: var(--dpd-green-dark);
  color: #fff !important;
}

.dpd-book svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

@media (min-width: 640px) {
  .dpd-book {
    width: 300px;
  }
}

@media (min-width: 1280px) {
  .dpd-book {
    width: 340px;
  }
}

.dpd-details {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.dpd-head {
  margin: 0 0 32px;
}

.dpd-head h1 {
  margin: 0;
  color: #111827 !important;
  font-family: Inter, system-ui, sans-serif;
  font-size: 30px !important;
  font-weight: 800 !important;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: none;
}

.dpd-head__role {
  margin: 8px 0 0 !important;
  color: #6b7280 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.4;
  text-transform: none;
}

.dpd-bars {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.dpd-bars span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--dpd-green);
}

.dpd-bars span:first-child {
  width: 48px;
}

.dpd-bars span:last-child {
  width: 16px;
  background: var(--dpd-green-mid);
}

@media (min-width: 640px) {
  .dpd-head h1 {
    font-size: 36px !important;
  }
}

.dpd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 32px;
}

@media (min-width: 640px) {
  .dpd-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dpd-card {
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
}

.dpd-card:hover {
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
}

.dpd-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.dpd-card__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f0fdf4;
  color: var(--dpd-green);
  flex: 0 0 28px;
}

.dpd-card__icon--qual { background: #eff6ff; }
.dpd-card__icon--spec { background: #f5f3ff; }
.dpd-card__icon--exp { background: #fffbeb; }
.dpd-card__icon--loc { background: #ecfdf5; }
.dpd-card__icon--kmc,
.dpd-card__icon--about { background: #f0fdf4; }

.dpd-card__icon svg {
  width: 16px;
  height: 16px;
}

.dpd-card__label p,
.dpd-about h2 {
  margin: 0 !important;
  color: #9ca3af !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.dpd-card > p {
  margin: 0 !important;
  color: #1f2937 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.5;
}

.dpd-about {
  grid-column: 1 / -1;
  padding: 20px 24px;
}

.dpd-about h2 {
  color: #374151 !important;
  font-size: 14px !important;
}

.dpd-about__copy {
  margin-top: 12px;
}

.dpd-about__copy p {
  margin: 0 0 12px !important;
  color: #4b5563 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.7;
}

.dpd-about__copy p:last-child {
  margin-bottom: 0 !important;
}

.dpd-empty {
  width: 100%;
  text-align: center;
  padding: 24px 0 8px;
}

.dpd-empty h1 {
  margin-bottom: 12px !important;
  color: #111827 !important;
  font-size: 30px !important;
}

.dpd-empty p {
  margin: 0 0 20px !important;
  color: #4b5563 !important;
  font-size: 16px !important;
}

.dpd-empty a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 20px;
  margin: 0 6px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}

.dpd-empty a:first-of-type {
  background: var(--dpd-green);
  color: #fff !important;
}

.dpd-empty a:last-of-type {
  border: 1px solid var(--dpd-green);
  color: var(--dpd-green) !important;
  background: #fff;
}

.dpd-related {
  width: 100%;
  padding: 64px 16px 80px;
  background: #fff;
}

.dpd-related__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.dpd-related h2 {
  margin: 0 0 8px !important;
  color: #1f2937 !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  text-align: center;
}

.dpd-related__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 40px 28px;
  margin-top: 72px;
}

.dpd-related .home-demo-doctor {
  position: relative;
  width: 300px;
  padding-top: 90px;
}

.dpd-related .home-demo-doctor__photo {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  width: 180px;
  height: 180px;
  transform: translateX(-50%);
  pointer-events: none;
}

.dpd-related .home-demo-doctor__photo img {
  display: block !important;
  width: 180px !important;
  height: 180px !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: top center !important;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #f3f4f6;
  box-shadow: 0 0 0 1px #e5e7eb;
}

.dpd-related .home-demo-doctor__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 268px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  text-align: center;
  padding-top: 102px;
}

.dpd-related .home-demo-doctor__share {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.dpd-related .home-demo-doctor__share:hover,
.dpd-related .home-demo-doctor__share:focus-visible {
  color: var(--dpd-green);
}

.dpd-related .home-demo-doctor__share svg {
  width: 22px;
  height: 22px;
  display: block;
  margin: 0 auto;
}

.dpd-related .home-demo-doctor__copy {
  flex: 1 1 auto;
  padding: 0 18px 22px;
}

.dpd-related .home-demo-doctor__copy h3 {
  margin: 0 !important;
  color: #111827 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.3;
}

.dpd-related .home-demo-doctor__qual,
.dpd-related .home-demo-doctor__kmc,
.dpd-related .home-demo-doctor__role {
  margin: 6px 0 0 !important;
}

.dpd-related .home-demo-doctor__qual {
  color: #6b7280 !important;
  font-size: 14px !important;
}

.dpd-related .home-demo-doctor__kmc {
  color: #9ca3af !important;
  font-size: 12px !important;
}

.dpd-related .home-demo-doctor__role {
  margin-top: 12px !important;
  color: var(--dpd-green) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

.dpd-related .home-demo-doctor__actions {
  display: flex;
  margin-top: auto;
  border-top: 1px solid #e5e7eb;
}

.dpd-related .home-demo-doctor__actions a {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.dpd-related .home-demo-doctor__actions a:first-child {
  background: var(--dpd-green);
  color: #fff !important;
}

.dpd-related .home-demo-doctor__actions a:first-child:hover,
.dpd-related .home-demo-doctor__actions a:first-child:focus-visible {
  background: var(--dpd-green-dark);
}

.dpd-related .home-demo-doctor__actions a:last-child {
  color: var(--dpd-green) !important;
  background: #fff;
  border-left: 1px solid #e5e7eb;
}

.dpd-related .home-demo-doctor__actions a:last-child:hover,
.dpd-related .home-demo-doctor__actions a:last-child:focus-visible {
  background: #f3f8f0;
}

.dpd-share {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

.dpd-share[hidden] {
  display: none !important;
}

.dpd-share__box {
  position: relative;
  width: 90%;
  max-width: 384px;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
}

.dpd-share__close {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: #9ca3af;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.dpd-share h3 {
  margin: 0 0 16px !important;
  color: #111827 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  text-align: center;
}

.dpd-share__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.dpd-share__grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #374151;
  text-decoration: none;
  font-size: 12px;
}

.dpd-share__grid a:hover {
  color: var(--dpd-green);
}

.dpd-share__grid svg {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
}

body.dpd-share-open {
  overflow: hidden;
}

@media (max-width: 639px) {
  .dpd-hero {
    padding: 32px 0 48px;
  }

  .dpd-head h1 {
    font-size: 26px !important;
  }

  .dpd-book {
    margin-top: 32px;
  }
}
