@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:wght@300;400;500;600;700&family=Maru+Buri:wght@200;300;400;500;600;700&display=swap');
/* 사용 폰트 */
.cormorant {
    font-family: 'Cormorant Infant', serif !important;
}

.maruburi {
    font-family: 'Maru Buri', serif !important;
}

/* 1. 레이아웃 초기화 및 기본 설정 */
.sub_content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#contents {
    padding-top: 0 !important;
}

.sub_page {
    position: relative;
    width: 100vw;
    min-width: 1500px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    overflow: hidden;
    background-color: #fff;
}

/* 2. 서브 헤더 (상단 비주얼) */
.sub_header {
    width: 100%;
    aspect-ratio: 1920/750;
    background-image: url('../../../../../../data/commonimg/doctor-s1-bg.png');
    background-size: cover;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.sub_header .title_wrapper {
    color: #fff;
}

.sub_header .title_wrapper h2 {
    font-weight: 600;
    font-size: clamp(24px, 2.08vw, 40px);
    margin-bottom: 12px;
    line-height: 1;
}

.sub_header .title_cont {
    font-weight: 700;
    font-size: clamp(20px, 1.67vw, 32px);
    line-height: 1;
}

/* 3. 의료진 컨텐츠 영역 */
.sub_page .content_wrapper {
    padding: clamp(60px, 6.25vw, 120px) 20px clamp(100px, 10.94vw, 210px);
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(30px, 4.25vw, 60px);
}

.content_wrapper .cont_title {
    font-weight: 600;
    font-size: clamp(20px, 1.67vw, 32px);
    line-height: 1;
    color: #74584C;
}

.content_wrapper .card_wrapper {
    display: flex;
    width: 100%;
    gap: clamp(60px, 6.25vw, 120px);
}

.card_wrapper .card {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: fit-content;
}

.card_wrapper .card .card_media {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.card_wrapper .card .img_box {
    aspect-ratio: 560/520;
    max-width: 560px;
    max-height: 520px;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.card .img_box img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.card .img_box:hover img {
    transform: scale(1.05);
}

.card_wrapper .card .detail_box {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #A37764;
    color: #fff;
    font-size: clamp(14px, 0.8vw + 11.12px, 18px);
    font-weight: 400;
    letter-spacing: -0.02em;
    cursor: pointer;
    padding: 0 20px;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.card_wrapper .card .detail_box:hover {
    background-color: #74584C;
}

.card_wrapper .card .detail_box img {
    width: clamp(12px, 0.8vw + 9.12px, 16px);
    height: clamp(12px, 0.8vw + 9.12px, 16px);
    display: block;
}

.card .card_info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card .card_info p {
    font-size: 28px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: #A37764;
}

.card .card_info p>strong {
    font-weight: 600;
}

.card .card_info h5 {
    color: #74584C;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}

.card .card_info h5>strong {
    font-weight: 500;
    font-size: 24px;
    line-height: 1;
}

/* 모달 레이아웃 */
.modal_wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal_wrap.active {
    display: flex;
}

.modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
}

.modal_container {
    position: relative;
    width: 100%;
    max-width: 560px;
    height: auto;
    max-height: 80vh;
    background: #fff;
    padding: 40px 32px;
    box-sizing: border-box;
    z-index: 10;
    overflow-y: auto;
    top: auto;
    left: auto;
    transform: none;
}

.modal_header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 32px;
    margin-bottom: 32px;
}

.modal_header .header_content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.header_content .quote {
    color: #685C57;
    font-weight: 600;
    font-size: clamp(14px, 0.8vw + 11.12px, 18px);
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.header_content .name {
    color: #74584C;
    font-weight: 600;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.header_content .name small {
    color: #685C57;
    font-weight: 500;
    font-size: 20px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.modal_header .modal_close {
    width: 19px;
    height: 19px;
    background: none;
    border: none;
    cursor: pointer;
}

.modal_body {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.modal_body .info_sec h4 {
    font-size: 24px;
    color: #74584C;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: -0.03em;
}

.modal_body ul {
    list-style: none;
    padding: 0;
}

.modal_body ul li {
    position: relative;
    padding-left: 12px;
    font-size: clamp(14px, 0.8vw + 11.12px, 18px);
    line-height: 1.4;
    color: #685C57;
    margin-bottom: 5px;
    letter-spacing: -0.03em;
}

.modal_body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    background: #685C57;
    border-radius: 50%;
}

/* 바디 스크롤 방지 */
body.modal-open {
    overflow: hidden;
}


.fade_up,
.fade_down {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform, opacity;
}

/* fade_up: 아래에서 위로 */
.fade_up {
    transform: translateY(50px);
}

/* fade_down: 위에서 아래로 (수치 -160% 유지) */
.fade_down {
    transform: translateY(-160%);
}

/* 활성화 시 공통 (이 부분이 있어야 작동합니다) */
.fade_up.show,
.fade_down.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 순차적으로 내려오게 하고 싶다면 HTML에 transition-delay 추가 혹은 아래 클래스 사용 */
.sub_header .title_cont.fade_down {
    transition-delay: 0.3s;
    /* 제목이 먼저 내려오고 0.3초 뒤에 영문 텍스트가 내려옴 */
}