/* ==========================================================================
   director.css — 의료진 상세페이지 전용
   ========================================================================== */

.doctor-hero {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}
.doctor-hero h1 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 12px; }
.doctor-hero p { color: rgba(255,255,255,0.75); font-size: 15.5px; }

.doctor-jump {
  position: sticky;
  top: 78px;
  z-index: 50;
  background: rgba(250,249,246,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  overflow-x: auto;
}
.doctor-jump .container { display: flex; gap: 10px; }
.doctor-jump a {
  flex-shrink: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-soft);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.doctor-jump a:hover, .doctor-jump a.is-lead { color: #fff; background: var(--navy); border-color: var(--navy); }

.doctor-card {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 150px;
}
.doctor-card:last-child { border-bottom: none; }

/* --- 클릭 가능한 사진 버튼 --- */
.doctor-photo-btn {
  flex-shrink: 0;
  width: 260px;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  background: #fff;
  display: block;
  transition: box-shadow .2s ease, transform .2s ease;
}
.doctor-photo-btn:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.doctor-photo-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-zoom-hint {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(29,53,87,0.82), transparent);
  color: #fff;
  font-family: var(--font-info);
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  padding: 26px 8px 12px;
}

/* --- 우측 정보 (이름 + 진료철학) --- */
.doctor-info { flex: 1; padding-top: 6px; }
.doctor-title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.doctor-title-row h2 { font-size: 25px; }
.doctor-role {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal-deep);
  background: var(--teal-soft);
  padding: 4px 12px;
  border-radius: 999px;
}
.doctor-specialty { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 20px; }
.doctor-philosophy {
  font-family: var(--font-info);
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  max-width: 560px;
}

@media (max-width: 800px) {
  .doctor-card { flex-direction: column; gap: 20px; }
  .doctor-photo-btn { width: 200px; margin: 0 auto; }
  .doctor-jump { top: 0; }
  .doctor-philosophy { font-size: 14.5px; }
}

/* ==========================================================================
   의료진 상세 오버레이 모달 (사진 크게 + 학력·경력, 밝은 톤)
   ========================================================================== */
.doctor-modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(28, 38, 50, 0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease;
}
.doctor-modal-overlay.open { opacity: 1; visibility: visible; }

.doctor-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%; max-width: 640px; max-height: 88vh;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(20,30,45,0.35);
  position: relative;
}

.doctor-modal-info {
  padding: 48px 44px 36px;
  overflow-y: auto;
  max-height: 88vh;
}
.doctor-modal-info .doctor-title-row { margin-bottom: 4px; }
.doctor-modal-info .doctor-specialty { margin-bottom: 24px; }

.doctor-modal-section { margin-bottom: 24px; }
.doctor-modal-section h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--navy-mist);
}
.doctor-modal-section ul { display: grid; gap: 8px; }
.doctor-modal-section li {
  font-family: var(--font-info);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  padding-left: 16px;
  position: relative;
}
.doctor-modal-section li::before {
  content: '·'; position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 700; font-size: 17px;
}

.doctor-modal-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.doctor-modal-badges span {
  font-family: var(--font-info);
  font-size: 12px;
  color: var(--navy-soft);
  background: var(--paper-deep);
  padding: 6px 12px;
  border-radius: 999px;
}

.doctor-modal-close {
  position: absolute;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
  z-index: 5;
  top: 16px; right: 16px;
}
.doctor-modal-close:hover { background: var(--navy); color: #fff; }
.doctor-modal-close svg { width: 18px; height: 18px; }

@media (max-width: 800px) {
  .doctor-modal-overlay { padding: 0; align-items: flex-end; }
  .doctor-modal {
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .doctor-modal-info { padding: 32px 22px 40px; max-height: 92vh; }
}
