/* doctors2.php — 의료진 소개 2 (타이포·사진 열: doctors1 기준) */

#contents_wrap > section.sub {
    width: min(100%, 1720px) !important;
    justify-self: stretch !important;
}

.clinic-page-doctors2 {
    --doctor2-fg: #1e3d34;
    --doctor2-muted: #4a6b62;
    --doctor2-line: #d6e0dc;
    --doctor2-accent: #2A5D44;
    /* 보조색상(배지 배경): #cbe8dd */
    --doctor2-accent-soft: #cbe8dd;
    --doctor2-accent-line: #2A5D44;
    --doctor2-surface: #f4f7f5;

    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 20px 150px;
    font-family: "Noto Sans KR", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--doctor2-fg);
    -webkit-font-smoothing: antialiased;
}

.doctor2-page-head {
    text-align: center;
    margin: 110px 0 0;
    padding-bottom: 28px;
    border-bottom: 2px solid #f6f7f8;
}

.doctor2-page-head h1 {
    margin: 0;
    font-size: 42px;
    font-weight: 700;
    color: #1e3d34;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.doctor2-page-head-en {
    margin: 10px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: #2A5D44;
    letter-spacing: 0.04em;
}

/* doctors1 .clinic-doctor-nav 과 동일 스케일 */
.doctor2-nav {
    margin: 20px 0 0;
    border-top: 2px solid #f6f7f8;
    border-bottom: 2px solid var(--doctor2-line);
    background: #fafcf9;
}

.doctor2-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.doctor2-nav li {
    flex: 1 1 25%;
}

.doctor2-nav a {
    display: block;
    text-align: center;
    font-size: 17px;
    font-weight: 500;
    color: #3d5249;
    text-decoration: none;
    padding: 0 6px;
    height: 55px;
    line-height: 55px;
    border-right: 1px solid rgba(59, 130, 246, 0.18);
    transition: color 0.15s ease;
}

.doctor2-nav li:last-child a {
    border-right: 0;
}

.doctor2-nav a:hover {
    color: var(--doctor2-accent);
}

.doctor2-list {
    margin-top: 0;
}

.doctor2-card {
    max-width: 1320px;
    margin: 0 auto;
    padding: 56px 0;
    border: 0;
    border-bottom: 2px solid #d6e0dc;
    background: transparent;
    box-sizing: border-box;
}

.doctor2-card:first-of-type {
    margin-top: 80px;
}

.doctor2-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.doctor2-main {
    display: flex;
    align-items: flex-start;
    gap: 36px;
}

.doctor2-card--reverse .doctor2-main {
    flex-direction: row-reverse;
}

/* 프로필 사진 열 — 인물 비중 확대 (원본 360px 대비 넓게) */
.doctor2-photo-wrap {
    flex: 0 0 400px;
    width: 400px;
    min-width: 400px;
    max-width: 400px;
}

.doctor2-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
    background: var(--doctor2-surface);
}

.doctor2-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6e0dc;
}

.doctor2-photo-label {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #4a6b62;
}

.doctor2-photo--image {
    position: relative;
}

.doctor2-photo--image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.doctor2-bio {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
}

.doctor2-card--reverse .doctor2-bio {
    padding: 6px 0;
}

.doctor2-clinic {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #2A5D44;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.doctor2-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
}

.doctor2-logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 4px;
    object-fit: contain;
}

.doctor2-logo--placeholder {
    border: 1px solid #c5d4cf;
    background: #f6f7f8;
}

.doctor2-name-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 12px;
}

.doctor2-name {
    font-size: 47px;
    font-weight: 700;
    color: #1e3d34;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.doctor2-position {
    font-size: 20px;
    font-weight: 500;
    color: #353535;
}

.doctor2-tag {
    flex-shrink: 0;
    display: inline-block;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--doctor2-accent);
    background: var(--doctor2-accent-soft);
    border: 0;
    border-radius: 999px;
    line-height: 1.3;
}

.doctor2-rule {
    height: 2px;
    background: linear-gradient(90deg, #2A5D44 0%, #2A5D44 72px, #f6f7f8 72px, #f6f7f8 100%);
    margin: 18px 0 16px;
    border-radius: 1px;
}

/* doctors1 .title_2(22px) / 인용 성격 */
.doctor2-quote {
    margin: 0 0 18px;
    padding-left: 14px;
    border-left: 4px solid var(--doctor2-accent-line);
    font-size: 22px;
    font-weight: 600;
    color: #2a3d35;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

/* 경력 및 이력 — 본문은 인용문·이름보다 한 단계 작게 */
.doctor2-cv {
    margin: 0;
    padding: 0;
    list-style: none;
}

.doctor2-cv li {
    position: relative;
    padding-left: 14px;
    font-size: 15px;
    line-height: 1.6;
    color: #455a53;
}

.doctor2-cv li + li {
    margin-top: 6px;
}

.doctor2-cv li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8a7349;
}

.doctor2-cv li:first-child {
    padding-left: 0;
    margin-bottom: 12px;
    font-size: 19px;
    font-weight: 700;
    color: var(--doctor2-fg);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.doctor2-cv li:first-child::before {
    display: none;
}

.doctor2-cv li:first-child strong {
    font-weight: 700;
    font-size: inherit;
}

@media (max-width: 860px) {
    .doctor2-page-head {
        margin: 50px 0 0;
    }

    .doctor2-page-head h1 {
        font-size: 35px;
    }

    .doctor2-page-head-en {
        font-size: 14px;
    }

    .doctor2-nav a {
        font-size: 15px;
    }

    .doctor2-main {
        flex-direction: column;
    }

    .doctor2-card--reverse .doctor2-main {
        flex-direction: column;
    }

    .doctor2-photo-wrap {
        width: 100%;
        min-width: 0;
        max-width: min(420px, 100%);
        margin: 0 auto;
    }

    .doctor2-bio {
        width: 100%;
        padding: 15px 0 0;
    }

    .doctor2-card--reverse .doctor2-bio {
        padding: 15px 0 0;
    }

    .doctor2-name {
        font-size: 36px;
    }

    .doctor2-position {
        font-size: 17px;
    }

    .doctor2-quote {
        font-size: 20px;
    }

    .doctor2-main {
        gap: 0;
    }

    .doctor2-cv li {
        font-size: 15px;
        padding-left: 14px;
    }

    .doctor2-cv li::before {
        top: 9px;
        width: 5px;
        height: 5px;
    }

    .doctor2-cv li:first-child {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .doctor2-card {
        padding: 28px 14px;
        border: 1px solid #d6e0dc;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(59, 130, 246, 0.06);
    }

    .doctor2-card:first-of-type {
        margin-top: 40px;
    }

    .doctor2-card + .doctor2-card{
        margin-top: 22px;
    }
}

@media (max-width: 640px) {
    .clinic-page-doctors2 {
        padding: 20px 12px 70px;
    }

    .doctor2-page-head h1 {
        font-size: 28px;
    }

    .doctor2-nav li {
        flex: 1 1 50%;
    }

    .doctor2-nav a {
        border-bottom: 1px solid #efefef;
        height: 48px;
        line-height: 48px;
    }

    .doctor2-card {
        padding: 24px 12px;
    }

    .doctor2-name-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .doctor2-name {
        font-size: 32px;
    }

    .doctor2-position {
        display: block;
        margin-left: 0;
        font-size: 16px;
    }

    .doctor2-quote {
        font-size: 18px;
    }

    .doctor2-cv li {
        font-size: 14px;
        line-height: 1.55;
    }

    .doctor2-cv li + li {
        margin-top: 5px;
    }

    .doctor2-cv li:first-child {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .doctor2-clinic {
        font-size: 16px;
    }

    .doctor2-tag {
        font-size: 13px;
    }
}
