.sub_con01 *, .sub_con02 *, .doctor_modal, .doctor_modal * { box-sizing: border-box; }
.sub_con01 .container{ padding: 40px 20px; }
.sub_con01 .dr_list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.sub_con01 .img { position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 16px; background: transparent; color: inherit; font: inherit; overflow: hidden; isolation: isolate; cursor: pointer; }
.sub_con01 .img img { display: block; width: 100%; height: auto; object-fit: cover; object-position: center top; transition: transform 0.45s ease; }
.sub_con01 .dr_more { position: absolute; top: 18px; right: 18px; z-index: 1; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #202c3d; transition: transform 0.35s ease; }
.sub_con01 .dr_more::before, .sub_con01 .dr_more::after { content: ""; position: absolute; width: 13px; height: 1px; background: #fff; }
.sub_con01 .dr_more::after { transform: rotate(90deg); }
.sub_con01 .img:hover img, .sub_con01 .img:focus-visible img { transform: scale(1.05); }
.sub_con01 .img:hover .dr_more, .sub_con01 .img:focus-visible .dr_more { transform: rotate(90deg); }
.sub_con01 .txt { margin: 16px 0 0; font-size: 20px; font-weight: 600; line-height: 28px; }
.sub_con01 .txt em { margin-left: 4px; font-size: 16px; font-weight: 400; font-style: normal; }

/* 의료진 소개 (약력 본문 노출형) */
.sub_con01.dr_profile .container { padding: 40px 20px 120px; }
.sub_con01.dr_profile .dr_list { display: flex; flex-direction: column; gap: 68px; margin: 0; padding: 0; list-style: none; }
.dr_profile .dr_list > li { display: flex; align-items: flex-start; gap: 60px; }
.dr_profile .dr_photo { flex: 0 0 504px; border-radius: 16px; background: #dfe1e4; overflow: hidden; }
.dr_profile .dr_photo img { display: block; width: 100%; height: auto; object-fit: cover; object-position: center top; }
.dr_profile .dr_info { flex: 1; min-width: 0; padding-top: 80px; color: #222; }
.dr_profile .dr_label { display: block; color: #1E293B; font-size: 13px; font-weight: 700; line-height: 18px; letter-spacing: 3px; }
.dr_profile .dr_name { margin: 16px 0 0; font-size: 32px; font-weight: 700; line-height: 40px; letter-spacing: -0.6px; }
.dr_profile .dr_name em { margin-left: 6px; font-size: 28px; font-weight: 400; font-style: normal; }
.dr_profile .dr_slogan { margin: 32px 0 0; color: #222;
	font-size: 20px;
	font-weight: 500;
	line-height: 28px;  word-break: keep-all; }
.dr_profile .dr_desc { margin: 14px 0 0; color: #4E4E4E; font-size: 15px; font-weight: 400; line-height: 22px;  word-break: keep-all; }
.dr_profile .dr_desc_lead { display: block; margin-bottom: 6px; }
.dr_profile .dr_history { display: grid; grid-template-columns: minmax(0, 496px) minmax(0, 400px); justify-content: start; gap: 0 24px; margin-top: 28px; padding-top: 28px; border-top: 1px solid #dedede; }
.dr_profile .dr_history ul { margin: 0; padding: 0; list-style: none; }
.dr_profile .dr_history li { position: relative; padding-left: 14px; color: #4E4E4E; font-size: 16px; font-weight: 400; line-height: 24px;  word-break: keep-all; }
.dr_profile .dr_history li::before { content: "-"; position: absolute; top: 0; left: 0; color: #919191; }

/* 의료진 모달 */
.doctor_modal { position: fixed; inset: 0; width: min(960px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 40px); margin: auto; padding: 52px 36px; border: 0; border-radius: 16px; background: #fff; color: #222; overflow: auto; overscroll-behavior: contain; }
.doctor_modal::backdrop { background: rgba(0, 0, 0, 0.6); }
.doctor_modal[open] { animation: doctorModalIn 0.25s ease; }
.doctor_modal .modal_close { position: absolute; top: 20px; right: 23px; display: grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #202c3d; color: #fff; cursor: pointer; }
.doctor_modal .modal_close::before, .doctor_modal .modal_close::after { content: ""; position: absolute; width: 14px; height: 2px; border-radius: 1px; background: #fff; transform: rotate(45deg); }
.doctor_modal .modal_close::after { transform: rotate(-45deg); }
.doctor_modal .modal_close:focus-visible { outline: 3px solid #496580; outline-offset: 4px; }
.doctor_modal .modal_inner { display: grid; grid-template-columns: 372px minmax(0, 1fr); align-items: center; gap: 44px; }
.doctor_modal .modal_photo { border-radius: 12px; background: #dfe1e4; overflow: hidden; }
.doctor_modal .modal_photo img { display: block; width: 100%; aspect-ratio: 372 / 440; object-fit: cover; object-position: center top; }
.doctor_modal .modal_info { min-width: 0; }
.doctor_modal .modal_name { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid #e6e6e6; font-size: 20px; font-weight: 700; line-height: 1.5; }
.doctor_modal .modal_name span { margin-left: 4px; font-size: 16px; font-weight: 400; }
.doctor_modal .modal_list li { position: relative; padding: 2px 0 2px 22px; font-size: 14px; font-weight: 400; line-height: 20px; }
.doctor_modal .modal_list li::before { content: ""; position: absolute; top: 50%; left: 8.5px; width: 3px; height: 3px; border-radius: 50%; background: #919191; transform: translateY(-50%); }
.doctor_modal .modal_societies { margin-top: 20px; color: #7a7a7a; }
.doctor_modal .modal_list[hidden] { display: none; }

/* 학회 활동 */
.sub_con02 .con_tit { margin: 0; color: #222; font-size: 36px; font-weight: 700; line-height: 48px; letter-spacing: -1.08px; }
.sub_con02 .activity_list { display: flex; flex-direction: column; gap: 24px; margin: 48px 0 0; padding: 0; list-style: none; }
.sub_con02 .activity_list > li { display: flex; align-items: stretch; width: 100%; min-width: 0; border-radius: 12px; background: #fafafa; overflow: hidden; }
.sub_con02 .activity_list > li > .img { flex: 0 0 50%; min-width: 0; }
.sub_con02 .activity_list .img img { display: block; width: 100%; height: auto; }
.sub_con02 .activity_list .img .pc_img { display: block; }
.sub_con02 .activity_list .img .m_img { display: none; }
.sub_con02 .activity_list > li > .txt { display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; padding: 24px 32px; }
.sub_con02 .activity_list .txt h3 { margin: 0 0 12px; color: #222; font-size: 24px; font-weight: 600; line-height: 32px; letter-spacing: -0.48px; word-break: keep-all; overflow-wrap: anywhere; }
.sub_con02 .activity_list .txt p { margin: 0; color: #4e4e4e; font-size: 16px; font-weight: 400; line-height: 24px; letter-spacing: -0.32px; word-break: keep-all; overflow-wrap: anywhere; }
.sub_con02 .activity_list .txt p + p { margin-top: 6px; }
.sub_con02 .activity_en { word-break: normal; overflow-wrap: anywhere; }

/* 모달 애니메이션 */
@keyframes doctorModalIn {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

/* 태블릿 */
@media (max-width: 900px) {
	.doctor_modal .modal_inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; }
}

@media (max-width: 1400px) {
	.dr_profile .dr_list > li { gap: 40px; }
	.dr_profile .dr_photo { flex-basis: 38%; }
	.dr_profile .dr_info { padding-top: 40px; }
	.dr_profile .dr_history { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
	.dr_profile .dr_list > li { gap: 28px; }
	.dr_profile .dr_info { padding-top: 0; }
	.dr_profile .dr_name { font-size: 26px; line-height: 34px; }
	.dr_profile .dr_name em { font-size: 20px; }
	.dr_profile .dr_slogan { margin-top: 20px; font-size: 18px; line-height: 26px; }
	.dr_profile .dr_desc br { display: none; }
	.dr_profile .dr_history { margin-top: 24px; padding-top: 24px; }
	.dr_profile .dr_history li { font-size: 14px; line-height: 24px; }
	.sub_con02 .activity_list > li > .img { flex-basis: 45%; }
	.sub_con02 .activity_list .img .pc_img { height: 100%; object-fit: cover; object-position: center; }
	.sub_con02 .activity_list > li > .txt { padding: 24px; }
	.sub_con02 .activity_list .txt h3 { font-size: 20px; line-height: 28px; }
	.sub_con02 .activity_list .txt p { font-size: 14px; line-height: 22px; }
}

/* 모바일 */
@media (max-width: 767px) {
	.sub_con01 .container{ padding: 60px 16px; }
	.sub_con01 .dr_list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
	.sub_con01 .img { border-radius: 8px; }
	.sub_con01 .dr_more { top: 12px; right: 12px; }
	.sub_con01 .txt { margin-top: 12px; font-size: 18px; }
	.sub_con01 .txt em { font-size: 14px; }

	.sub_con01.dr_profile .container { padding: 40px 16px 80px; }
	.sub_con01.dr_profile .dr_list { gap: 56px; }
	.dr_profile .dr_list > li { flex-direction: column; gap: 24px; }
	.dr_profile .dr_photo { flex: none; width: 100%; border-radius: 8px; }
	.dr_profile .dr_info { padding-top: 0; }
	.dr_profile .dr_label { font-size: 11px; line-height: 16px; letter-spacing: 2px; }
	.dr_profile .dr_name { margin-top: 8px; font-size: 24px; line-height: 32px; }
	.dr_profile .dr_name em { font-size: 18px; }
	.dr_profile .dr_slogan { margin-top: 20px; font-size: 17px; line-height: 26px; }
	.dr_profile .dr_desc { margin-top: 12px; font-size: 13px; line-height: 21px; }
	.dr_profile .dr_history { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 24px; padding-top: 24px; }
	.dr_profile .dr_history li { font-size: 13px; line-height: 22px; }

	/* 투명한 상단 공간에 닫기 버튼 배치 */
	.doctor_modal { padding: 48px 0 0; max-height: calc(100dvh - 40px);width: min(360px, calc(100% - 48px)); background: transparent; overflow: visible; }
	.doctor_modal .modal_close { top: 0; right: 0; }
	.doctor_modal .modal_inner { grid-template-columns: minmax(0, 1fr); gap: 16px; max-height: calc(100dvh - 88px); padding: 16px; border-radius: 16px; background: #fff; overflow-y: auto; overscroll-behavior: contain; }
	.doctor_modal .modal_photo { width: 100%; margin-inline: auto; }
	.doctor_modal .modal_name { font-size: 18px; }
	.doctor_modal .modal_name span { font-size: 14px; }
	.doctor_modal .modal_list { font-size: 13px; }
	.doctor_modal .modal_list li { padding: 2px 0; }
	.doctor_modal .modal_list li::before { display: none; }

	.sub_con02 .con_tit { margin-bottom: 32px; font-size: 28px; line-height: 34px; letter-spacing: -0.84px; }
	.sub_con02 .activity_list { gap: 20px; margin-top: 32px; }
	.sub_con02 .activity_list > li { flex-direction: column; border-radius: 6px; }
	.sub_con02 .activity_list > li > .img { flex: none; width: 100%; }
	.sub_con02 .activity_list .img .pc_img { display: none; }
	.sub_con02 .activity_list .img .m_img { display: block; width: 100%; height: auto; }
	.sub_con02 .activity_list > li > .txt { flex: none; width: 100%; padding: 24px 16px; }
	.sub_con02 .activity_list .txt h3 { margin-bottom: 8px; font-size: 16px; line-height: 24px; letter-spacing: -0.32px; }
	.sub_con02 .activity_list .txt p { font-size: 14px; line-height: 20px; letter-spacing: -0.28px; }
	.sub_con02 .activity_list .txt p + p { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
	.doctor_modal[open] { animation: none; }
}
