/* profile */
.doctors-profile-wrap {
  padding: 0 40px;
  margin-bottom: 180px;
}

.doctors-profile-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 100px;
  max-width: 1790px;
  margin: 0 auto;
}

.doctors-profile-item {
  display: flex;
  align-items: center;
  position: relative;
  border-radius: 50px;
  padding: 60px 100px;
  background: url('/images/doctors/doctors-bg-01-68644df82e196dd6b746ecc467ccf754.png') no-repeat center right / cover;
}

.doctors-profile-item:nth-of-type(even) {
  flex-direction: row-reverse;
  background: url('/images/doctors/doctors-bg-02-2221504fc8c9b2afea1cb67b31c55e73.png') no-repeat center right / cover;
  gap: 160px;
}

.doctors-profile-item-inner {
  flex: 0.8;
  display: flex;
  justify-content: center;
}

.doctors-profile-item:nth-of-type(odd) .doctors-profile-item-inner {
  justify-content: flex-start;
  padding-left: 10%;
}

.doctors-profile-item-img {
  flex: 0 0 450px;
  width: 450px;
  height: 600px;
  text-align: center;
  aspect-ratio: 1/1.25;
}

.doctors-profile-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.doctor-specialty {
  font-size: 24px;
  color: #1E2B56;
  font-weight: 600;
  margin-bottom: 16px;
}

.doctor-name {
  font-size: 44px;
  font-weight: 800;
  color: #111;
  margin-bottom: 8px;
}

.doctor-name strong {
  letter-spacing: 10px;
}

.doctor-name span {
  font-size: 34px;
  font-weight: 500;
  margin-left: 10px;
}

.doctor-name-en {
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
  letter-spacing: 1px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.doctor-history {
  margin: 0;
}

/* 의료진 섹션 스타일 */
.doctor-section {
  margin-bottom: 30px;
}

.doctor-section:last-child {
  margin-bottom: 0;
}

.doctor-history p {
  font-size: 18px;
  color: #444;
  line-height: 2.2;
  margin: 0;
  white-space: pre-line;
}

/* 비활성화된 의료진 스타일 */
.doctors-profile-item.inactive {
  opacity: 0.6;
  filter: grayscale(1);
}

.doctors-profile-item.inactive::after {
  content: '비활성';
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ff6b6b;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* 이미지 플레이스홀더 */
.profile-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 25px;
  border: 2px dashed #dee2e6;
}

.profile-image-placeholder .material-symbols-outlined {
  font-size: 80px;
  color: #adb5bd;
}


/* --- Responsive --- */
@media (max-width: 1440px) {
  .doctors-profile-item {
    padding: 40px 80px;
    gap: 50px;
  }

  .doctors-profile-item-inner {
    flex: 1;
  }
  .doctors-profile-item:nth-of-type(odd) .doctors-profile-item-inner {
    padding-left: 0;
  }

  .doctors-profile-item:nth-of-type(even) {
    gap: 100px;
  }

  .doctors-profile-item-img {
    flex-basis: 400px;
    height: 550px;
  }
}

@media (max-width: 1024px) {
  .doctors-profile-wrap {
    padding: 0 20px;
    margin-bottom: 120px;
  }

  .doctors-profile-item,
  .doctors-profile-item:nth-of-type(even) {
    flex-direction: column;
    padding: 40px;
    gap: 40px;
    border-radius: 24px;
  }

  .doctors-profile-item-img {
    flex-basis: auto;
    width: 100%;
    max-width: 450px;
    height: auto;
  }

  .doctor-name {
    font-size: 36px;
  }

  .doctor-name span {
    font-size: 28px;
  }

  .doctor-history li {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .doctors-profile-wrap {
    padding: 0 16px;
    margin-bottom: 60px;
  }

  .doctors-profile-list {
    gap: 40px;
  }

  .doctors-profile-item,
  .doctors-profile-item:nth-of-type(even) {
    padding: 24px 20px;
    border-radius: 16px;
    gap: 24px;
  }

  .doctors-profile-item-img {
    max-width: 280px;
    height: 350px;
  }

  .doctors-profile-item-img img {
    border-radius: 16px;
  }

  .doctor-specialty {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .doctor-name {
    font-size: 28px;
    margin-bottom: 6px;
  }

  .doctor-name strong {
    letter-spacing: 6px;
  }

  .doctor-name span {
    font-size: 20px;
    margin-left: 8px;
  }

  .doctor-name-en {
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .doctor-section {
    margin-bottom: 20px;
  }

  .doctor-history p {
    font-size: 14px;
    line-height: 1.8;
  }

  /* 비활성화된 의료진 스타일 모바일 */
  .doctors-profile-item.inactive::after {
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 16px;
  }

  /* 이미지 플레이스홀더 모바일 */
  .profile-image-placeholder .material-symbols-outlined {
    font-size: 60px;
  }
}

@media (max-width: 480px) {
  .doctors-profile-wrap {
    padding: 0 12px;
    margin-bottom: 50px;
  }

  .doctors-profile-list {
    gap: 30px;
  }

  .doctors-profile-item,
  .doctors-profile-item:nth-of-type(even) {
    padding: 20px 16px;
    border-radius: 12px;
    gap: 20px;
  }

  .doctors-profile-item-img {
    max-width: 240px;
    height: 300px;
  }

  .doctor-specialty {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .doctor-name {
    font-size: 24px;
    margin-bottom: 5px;
  }

  .doctor-name strong {
    letter-spacing: 4px;
  }

  .doctor-name span {
    font-size: 18px;
    margin-left: 6px;
  }

  .doctor-name-en {
    font-size: 13px;
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .doctor-section {
    margin-bottom: 16px;
  }

  .doctor-history p {
    font-size: 13px;
    line-height: 1.7;
  }

  /* 비활성화된 의료진 스타일 작은 모바일 */
  .doctors-profile-item.inactive::after {
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 12px;
  }

  /* 이미지 플레이스홀더 작은 모바일 */
  .profile-image-placeholder .material-symbols-outlined {
    font-size: 50px;
  }
}