/* 본명조 (Noto Serif KR) 구글 웹폰트 로드 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@200;300;400;500;600;700;900&display=swap');

/* 라엘라 의료진소개 (doctor_info) 스타일 */
:root {
  --info-coral: #d3646c;
  --info-dark: #111111;
  --info-body: #333333;
  --info-title-font: 'Noto Serif KR', serif;
  --info-body-font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
}

/* 공통 스타일(.content > div { width:800px }) 무력화 및 100% 와이드 확장 */
.content>.doctor-new-wrap,
.doctor-new-wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #ffffff;
  overflow-x: hidden;
  word-break: keep-all;
}

/* 이미지 전체 드래그 및 선택 방지 */
.doctor-new-wrap img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* 우측 하단 플로팅 상담문의 버튼 최상단 고정 */
.sub_quick_square {
  z-index: 9999 !important;
}

/* =============================================================
   1. 히어로 영역 (PC 기본 스타일)
   ============================================================= */
.doctor-hero-section {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.doctor-hero-bg {
  width: 100% !important;
}

.doctor-hero-bg img {
  width: 100% !important;
  max-width: none !important;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* 모바일 전용 요소: PC에서는 숨김 */
.doctor-mob-doctors,
.doctor-hero-arrow {
  display: none;
}

/* 텍스트 오버레이 (PC) */
.doctor-hero-content {
  position: absolute;
  top: 38%;
  left: calc(20% + 76px);
  z-index: 2;
}

.doctor-hero-title {
  font-family: var(--info-title-font);
  font-size: 2.3vw;
  font-weight: 400;
  color: var(--info-dark);
  letter-spacing: -0.05em;
  line-height: 1.35;
  margin-bottom: 1.6vw;
  opacity: 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: glowFadeIn 1.3s ease-out 0.2s both;
}

.doctor-hero-title strong {
  font-weight: 700;
}

.doctor-hero-desc {
  font-family: var(--info-body-font);
  font-size: 1.13vw;
  font-weight: 400;
  color: var(--info-body);
  line-height: 1.5;
  letter-spacing: -0.01em;
  opacity: 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: glowFadeIn 1.3s ease-out 0.7s both;
}

/* 은은한 발광 페이드인 애니메이션 */
@keyframes glowFadeIn {
  0% {
    opacity: 0;
    filter: blur(8px) brightness(1.6);
    text-shadow: 0 0 25px rgba(255, 255, 255, 1), 0 0 45px rgba(255, 255, 255, 0.9);
  }

  40% {
    opacity: 0.7;
    filter: blur(3px) brightness(1.3);
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.6);
  }

  100% {
    opacity: 1;
    filter: none;
    text-shadow: none;
  }
}

/* 화살표 바운스 애니메이션 */
@keyframes bounceDown {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

/* =============================================================
   2. 원장단 프로필 상세 섹션 (PC 레이아웃: 50% 사진 / 50% 텍스트)
   ============================================================= */
/* 반응형 유틸리티 */
.mob-only {
  display: none !important;
}

.pc-only {
  display: block;
}

.doctor-profile-section {
  width: 100%;
  margin-top: 150px;
  background-color: #ffffff;
}

.doctor-profile-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.doctor-profile-image {
  flex: 0 0 50%;
  width: 50%;
  overflow: hidden;
}

.doctor-profile-image img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.doctor-profile-text {
  flex: 0 0 50%;
  width: 50%;
  box-sizing: border-box;
}

/* 1) 장설희 대표원장 본문 진입 */
.doctor-row-jang .doctor-profile-text {
  padding-left: clamp(40px, 4.5vw, 90px);
  padding-right: clamp(40px, 4.5vw, 90px);
  text-align: left;
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2) 박수홍 원장 본문 진입 */
.doctor-row-park .doctor-profile-text {
  padding-left: clamp(40px, 4.5vw, 90px);
  padding-right: clamp(40px, 4.5vw, 90px);
  text-align: right;
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 스크롤 도달 시 활성화 */
.doctor-profile-row.is-active .doctor-profile-text {
  opacity: 1;
  transform: translateX(0);
}

.doctor-quote-icon {
  width: 48px;
  margin-bottom: 24px;
}

.doctor-row-park .doctor-quote-icon {
  margin-left: auto;
}

.doctor-row-park .doctor-quote-icon img {
  transform: rotate(180deg);
}

.doctor-quote-icon img {
  width: 100%;
  height: auto;
  display: block;
}

.doctor-row-title {
  font-family: var(--info-title-font);
  font-size: clamp(28px, 2.0vw, 36px);
  font-weight: 700;
  color: var(--info-dark);
  letter-spacing: -0.04em;
  line-height: 1.35;
  margin-bottom: 35px;
}

.doctor-row-body {
  font-family: var(--info-body-font);
  font-size: clamp(14px, 0.95vw, 16px);
  font-weight: 400;
  color: #333333;
  line-height: 1.85;
  letter-spacing: -0.02em;
}

.doctor-row-body p+p {
  margin-top: 26px;
}

.doctor-highlight-coral {
  color: var(--info-coral);
  font-weight: 500;
}

.doctor-highlight-coral strong {
  font-weight: 700;
}

/* =============================================================
   3. 원장단 약력 섹션 (Career Section) - PC
   ============================================================= */
.doctor-career-section {
  width: 100%;
  height: 700px;
  margin-top: 150px;
  background-color: #db787f;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.doctor-career-container {
  width: 100%;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}

/* 중앙 원장단 전신 사진 */
.doctor-career-image {
  position: absolute;
  bottom: -80px;
  left: calc(50% + 30px);
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.doctor-career-image img {
  height: 715px;
  width: auto;
  max-width: none;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* 약력 정보 공통 */
.doctor-career-info {
  position: absolute;
  top: 210px;
  z-index: 2;
  color: #ffffff;
}

/* 1) 장설희 대표원장 약력 */
.career-jang {
  right: calc(50% + 230px);
  text-align: left;
}

/* 2) 박수홍 원장 약력 */
.career-park {
  left: calc(50% + 310px);
  text-align: left;
}

.career-title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}

.career-name {
  font-family: var(--info-title-font);
  font-size: clamp(30px, 2.1vw, 36px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1;
}

.career-position {
  font-family: var(--info-body-font);
  font-size: clamp(16px, 1.1vw, 19px);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.career-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--info-body-font);
  font-size: clamp(15.5px, 1.08vw, 17px);
  font-weight: 300;
  color: #ffffff;
  line-height: 2.15;
  letter-spacing: -0.02em;
}

.career-list li {
  white-space: nowrap;
}

/* =============================================================
   4. 철학 및 가치 섹션 (Philosophy Section) - PC
   ============================================================= */
.doctor-philosophy-section {
  width: 100%;
  margin-top: 150px;
  margin-bottom: 150px;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
  background-color: #ffffff;
}

.doctor-philosophy-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.doctor-philosophy-sub {
  font-family: var(--info-body-font);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 500;
  color: #ea7987;
  letter-spacing: 0.5em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.doctor-philosophy-title {
  font-family: var(--info-title-font);
  font-size: clamp(34px, 2.6vw, 44px);
  color: var(--info-dark);
  line-height: 1.45;
  letter-spacing: -0.07em;
  margin: 0;
}

.doctor-philosophy-title .philosophy-top {
  display: block;
  font-weight: 400;
}

.doctor-philosophy-title .philosophy-name {
  display: block;
  font-weight: 700;
}

.doctor-philosophy-desc {
  margin-top: 80px;
  font-family: var(--info-body-font);
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 400;
  color: #333333;
  line-height: 1.85;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.doctor-philosophy-desc p {
  margin: 0;
}

/* =============================================================
   모바일 반응형 (max-width: 768px)
   ============================================================= */
@media (max-width: 768px) {

  /* 3. 원장단 약력 섹션 (모바일) */
  .doctor-career-section {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 100px;
    background-color: #db787f;
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
  }

  .doctor-career-mobile {
    display: flex !important;
    flex-direction: column;
    gap: 70px;
    width: 100%;
    box-sizing: border-box;
  }

  .career-mob-card {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    padding: 0 10px;
  }

  /* 1) 장설희 대표원장 */
  .card-jang .career-mob-info {
    flex: 0 0 52%;
    width: 52%;
    padding-left: 14px;
    transform: translate(0px, -20px);
    z-index: 2;
    box-sizing: border-box;
  }

  .card-jang .career-name {
    font-size: clamp(23px, 6.0vw, 28px);
  }

  .card-jang .career-mob-photo {
    flex: 0 0 48%;
    width: 48%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 1;
    box-sizing: border-box;
  }

  .card-jang .career-mob-photo img {
    transform: translateY(35px);
  }

  /* 2) 박수홍 원장 */
  .card-park {
    margin-bottom: -40px;
  }

  .card-park .career-mob-photo {
    flex: 0 0 48%;
    width: 48%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    z-index: 1;
    box-sizing: border-box;
  }

  .card-park .career-mob-info {
    flex: 0 0 52%;
    width: 52%;
    padding-left: 10px;
    padding-right: 14px;
    transform: translate(15px, -50px);
    z-index: 2;
    box-sizing: border-box;
  }

  .career-mob-photo img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
  }

  .career-mob-info .career-title-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 22px;
  }

  .career-mob-info .career-name {
    font-family: var(--info-title-font);
    font-size: clamp(26px, 6.8vw, 32px);
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin: 0;
    line-height: 1;
  }

  .career-mob-info .career-position {
    font-family: var(--info-body-font);
    font-size: clamp(15px, 3.8vw, 18px);
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1;
  }

  .career-mob-info .career-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--info-body-font);
    font-size: clamp(12px, 3.1vw, 13.8px);
    font-weight: 300;
    color: #ffffff;
    line-height: 1.7;
    letter-spacing: -0.03em;
  }

  .career-mob-info .career-list li {
    white-space: nowrap;
  }

  .doctor-hero-section {
    background-image: url('images/doctor_mob_bg.webp');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: left bottom;
    background-color: transparent;
    padding: 60px 20px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* PC 배경 이미지 숨김 */
  .doctor-hero-bg {
    display: none;
  }

  /* 모바일 원장단 사진 */
  .doctor-mob-doctors {
    display: block;
    width: 72%;
    max-width: 330px;
    margin: 0 auto 35px;
    transform: translateY(60px);
  }

  .doctor-mob-doctors img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
  }

  /* 텍스트 영역 */
  .doctor-hero-content {
    position: relative;
    margin-top: -30px;
    width: 100%;
    text-align: center;
    left: auto;
    top: auto;
  }

  .doctor-hero-title {
    font-size: clamp(34px, 8.2vw, 42px);
    line-height: 1.35;
    margin-bottom: 22px;
    opacity: 1;
    animation: glowFadeIn 1.3s ease-out 0.2s both;
  }

  .doctor-hero-desc {
    font-size: clamp(16.5px, 4.5vw, 18.5px);
    line-height: 1.65;
    margin-bottom: 50px;
    opacity: 1;
    animation: glowFadeIn 1.3s ease-out 0.7s both;
  }

  /* 모바일용 화살표 */
  .doctor-hero-arrow {
    display: block;
    width: 50px;
    margin: 0 auto;
    animation: bounceDown 1.6s infinite ease-in-out;
  }

  .doctor-hero-arrow img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
  }

  /* =============================================================
     2. 원장단 상세 프로필 섹션 (모바일)
     ============================================================= */
  .pc-only {
    display: none !important;
  }

  .mob-only {
    display: block !important;
  }

  .doctor-profile-header.mob-only {
    display: flex !important;
  }

  .doctor-profile-section {
    margin-top: 100px;
  }

  .doctor-profile-row {
    flex-direction: column;
    margin-bottom: 0;
  }

  /* 1) 장설희 대표원장 행 */
  .doctor-row-jang {
    margin-bottom: 150px;
  }

  .doctor-row-park {
    margin-bottom: 80px;
  }

  /* 사진 영역 (500:300 비율) */
  .doctor-profile-image {
    width: 100%;
    flex: 0 0 auto;
    aspect-ratio: 500 / 300;
    height: auto;
    position: relative;
    overflow: hidden;
  }

  .doctor-row-park .doctor-profile-image {
    order: 1;
  }

  .doctor-row-park .doctor-profile-text {
    order: 2;
  }

  .doctor-profile-image picture,
  .doctor-profile-image picture img,
  .doctor-profile-image>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* 사진 정렬 */
  .doctor-row-jang .doctor-profile-image picture img,
  .doctor-row-jang .doctor-profile-image>img {
    object-position: left center;
  }

  .doctor-row-park .doctor-profile-image picture img,
  .doctor-row-park .doctor-profile-image>img {
    object-position: right center;
  }

  /* 사진 위 타이틀 오버레이 */
  .doctor-profile-image .doctor-profile-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
  }

  /* 1) 장설희 대표원장 타이틀 */
  .doctor-row-jang .doctor-profile-image .doctor-profile-header {
    right: calc(6% + 15px);
    left: auto;
    text-align: left;
    max-width: 70%;
  }

  /* 2) 박수홍 원장 타이틀 */
  .doctor-row-park .doctor-profile-image .doctor-profile-header {
    left: calc(6% + 30px);
    right: auto;
    text-align: left;
    max-width: 55%;
  }

  .doctor-profile-image .doctor-quote-icon {
    width: 26px;
    height: auto;
    margin-bottom: 12px;
  }

  .doctor-profile-image .doctor-quote-icon img {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: contain;
  }

  .doctor-row-park .doctor-profile-image .doctor-quote-icon {
    margin-left: 0;
  }

  .doctor-row-park .doctor-profile-image .doctor-quote-icon img {
    transform: none;
  }

  .doctor-profile-image .doctor-row-title {
    font-family: var(--info-title-font);
    font-size: clamp(26px, 7vw, 32px);
    font-weight: 700;
    color: var(--info-dark);
    line-height: 1.35;
    margin-bottom: 0;
    letter-spacing: -0.04em;
  }

  /* 본문 텍스트 */
  .doctor-profile-text {
    flex: 0 0 auto;
    width: 100%;
    padding: 0 6%;
    box-sizing: border-box;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .doctor-row-jang .doctor-profile-text,
  .doctor-row-park .doctor-profile-text {
    padding: 0 6%;
    text-align: center;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .doctor-row-body {
    margin-top: 30px;
    font-size: clamp(14px, 3.8vw, 15.5px);
    line-height: 1.85;
    word-break: keep-all;
    text-align: center;
  }

  .doctor-row-body p+p {
    margin-top: 22px;
  }

  /* 4. 철학 및 가치 섹션 (모바일) */
  .doctor-philosophy-section {
    margin-top: 100px;
    margin-bottom: 90px;
    padding: 0 20px;
  }

  .doctor-philosophy-sub {
    font-size: clamp(14px, 3.8vw, 16px);
    margin-bottom: 16px;
    letter-spacing: 0.5em;
  }

  .doctor-philosophy-title {
    font-size: clamp(20px, 5.5vw, 25px);
    line-height: 1.4;
  }

  .doctor-philosophy-desc {
    margin-top: 50px;
    font-size: clamp(13.5px, 3.6vw, 15px);
    line-height: 1.85;
  }
}