/* JH_center leaflet 공통 스타일 (10.html 기반, 05/10 공유) */
:root {
    /* 메인 대분류 컬러 시스템 */
    --primary-blue: #3b66a6; /* 수술전문센터 */
    --primary-orange: #d97736; /* 암센터 */
    --primary-pink: #cc5a71; /* 여성특화센터 */
    --primary-mint: #4b9886; /* 내과계진료센터 */
    --primary-yellow: #e29e21; /* 소아청소년센터 */
    --primary-red: #b92c3b; /* 지역응급의료기관 */
    --primary-brown: #a38474; /* 기쁨검진센터 */

    /* 서브 헤더 바 배경 컬러 */
    --sub-blue-bg: #d9e8f5;
    --sub-orange-bg: #fbe7da;
    --sub-pink-bg: #f7e2e6;
    --sub-mint-bg: #dfefe9;
    --sub-yellow-bg: #fdf0d5;
    --sub-red-bg: #f8e5e7;
    --sub-brown-bg: #f1eae6;

    --accent-color: #0284c7;
    --danger-color: #ef4444;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;

    /* photo-meta: 반응형에서도 동일 높이 */
    --photo-meta-height: 42px;
    /* media-side(260px) 기준 이미지 비율 — 너비에 맞춰 높이가 같이 줄어듦 */
    --photo-grid-1x2-width: 260px;
    --photo-grid-1x1-width: 150px;
    --photo-cell-1x2-width: 125px;
    --photo-grid-1x2-gap: 10px;
    --photo-ratio-default: 260 / 238;
    --photo-ratio-full: 260 / 133;
    --photo-ratio-1x2: 125 / 133; /* 셀 125×175 (이미지 133 + meta 42) */
    --photo-ratio-2x2: 125 / 130;
    --photo-ratio-1x5: 159 / 103;
    --photo-ratio-1x3: 260 / 170; /* 검진센터 3열 — PC */
    --photo-ratio-1x3-mobile: 300 / 110; /* 검진센터 — 모바일 1열 */
    --photo-grid-stack-width: 260px;
    --photo-ratio-stack: 260 / 100; /* 응급실 배너 — 이미지 100 + meta 42 */
    --photo-ratio-half: 260 / 83;
    --photo-ratio-single: 150 / 133; /* 의사 1명 — 150px 너비, 1x2 셀과 동일 이미지 높이 */
}
#content * {
    font-family: "Suit", sans-serif !important;
}

.leaflet-wrap,
.leaflet-vertical-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    color: #333;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.leaflet-wrap *,
.leaflet-vertical-wrapper * {
    box-sizing: border-box;
}

.leaflet-wrap ul {
    list-style: none;
    padding: 0;
    margin-left: 0;
}

.leaflet-wrap .sec-row,
.leaflet-vertical-wrapper .sec-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
    border-bottom: 2px dashed #e2e8f0;
    padding-bottom: 24px;
}

.leaflet-wrap .sec-row:last-child,
.leaflet-vertical-wrapper .sec-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.leaflet-wrap .left-col,
.leaflet-wrap .right-col,
.leaflet-vertical-wrapper .left-col,
.leaflet-vertical-wrapper .right-col {
    width: 100%;
}

/* sub-section-title 표준 (10.html 기준) */
.sub-section-title {
    background-color: #f6e6c4;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 12px 0;
}

.sub-section-title .num-badge {
    background-color: #f9be24;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sub-section-title span {
    color: #111111;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.sub-section-title.has-badge {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
}

.sub-section-title.has-badge .title-text {
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

/* compact doctor thumbs (00.html 요약 리플렛) */
.doctors-grid-compact,
.doc-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 12px;
}

.doctor-thumb,
.doc-item {
    width: calc(50% - 6px);
    max-width: 120px;
    text-align: center;
}

.doctor-thumb .thumb-img,
.doc-img {
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3/4;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-thumb .thumb-img img,
.doc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.doctor-thumb .thumb-name,
.doc-info {
    font-size: 16px;
    color: #1e293b;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.doctor-thumb .thumb-pos,
.doc-pos {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-right: 4px;
}

.leaflet-wrap .sm-txt {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

/* doc-tags 표준 (10.html 기준) */
.doc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.doc-tags span {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.3px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    box-sizing: border-box;
}

.tag-specialist {
    background-color: #eef2ff;
    color: #1a2b61;
    border: 1px solid #dbeafe;
}

.tag-sub,
.tag-emg {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* doctor-card 표준 (10.html 기준) */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 10px;
}

.doctors-grid-single {
    grid-template-columns: 1fr;
}

.doctor-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.doc-profile {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border-bottom: 1px dashed #edf2f7;
    padding-bottom: 16px;
    margin-bottom: 14px;
}

.doc-img-box {
    width: 120px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    background: #f7fafc;
    flex-shrink: 0;
    box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.1);
}

.doc-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.doc-name-zone {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.doc-name {
    font-size: 23px;
    font-weight: 800;
    color: #1a2b61;
    margin: 0;
}

.doc-name .position {
    font-size: 17px;
    color: #718096;
    font-weight: 500;
}

.doc-career-zone {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 10px;
}

.doc-career-zone h4 {
    font-size: 18px;
    font-weight: 800;
    color: #1a2b61;
    margin: 14px 0 6px;
    padding-left: 8px;
    border-left: 3px solid #1a2b61;
}

.doc-career-zone h4:first-child {
    margin-top: 0;
}

.career-list {
    margin: 0;
    padding-left: 12px;
    list-style-type: none;
}

.doc-career-zone .career-list + .career-list {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}

.career-list li {
    font-size: 19px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 4px;
    position: relative;
    font-weight: 500;
}

.career-list li::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 15px;
    width: 3px;
    height: 3px;
    background-color: #cbd5e0;
    border-radius: 50%;
}

.career-list li.hl {
    color: #2d3748;
    font-weight: 700;
}

.career-list .society-text {
    font-size: 17px;
    font-weight: 600;
    color: #4a5568;
    line-height: 1.7;
    letter-spacing: -0.5px;
    word-break: keep-all;
    margin-top: 6px;
    display: block;
}

.career-list .society-text span.divider-slash {
    color: #cbd5e0;
    margin: 0 4px;
    font-weight: 400;
}

.clinic-desc-box {
    font-size: 20px;
    color: #333333;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.5px;
    text-align: left;
    padding: 20px;
    margin: 0;
}

.clinic-desc-box strong {
    font-weight: 800;
    color: #111111;
}

.diagram-with-desc {
    display: flex;
    align-items: center;
    gap: 20px;
}

.diagram-with-desc .clinic-desc-box {
    flex: 1;
    min-width: 0;
    padding: 20px 10px;
}

.diagram-with-desc .circle-diagram-wrapper {
    flex-shrink: 0;
    margin: 0;
}

/* detail-item 표준 (10.html 기준) */
.detail-item {
    padding: 10px 20px;
}

.detail-item-title {
    font-size: 21px;
    font-weight: 800;
    color: #f39800;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.detail-item-title .circle-dot {
    width: 10px;
    height: 10px;
    border: 2px solid #f39800;
    border-radius: 50%;
    box-sizing: border-box;
    display: inline-block;
    flex-shrink: 0;
}

.detail-item-content {
    font-size: 19px;
    color: #333333;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: -0.5px;
    text-align: left;
}

.detail-item-content strong {
    font-weight: 800;
    color: #111111;
}

/* detail-item + 이미지 좌우 배치 */
.detail-item-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.detail-item-stack {
    flex: 1;
    min-width: 0;
}

.detail-item-media {
    flex-shrink: 0;
    width: 200px;
    max-width: 100%;
}

.detail-item-media svg,
.detail-item-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fdfcfb;
}

.detail-item-caption {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    margin-top: 6px;
    color: #64748b;
}

.leaflet-wrap .title-bar {
    padding: 14px 18px;
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    line-height: 1.4;
    border: none;
}

.leaflet-wrap .title-bar .title-text {
    line-height: 1.2;
    display: inline-block;
}

.leaflet-wrap .title-bar .sub-quote {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #64748b;
    margin-top: 4px;
}

.leaflet-wrap .feat-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 19px;
    color: #475569;
    line-height: 1.5;
    letter-spacing: -0.5px;
    font-weight: 600;
}

.leaflet-wrap .feat-list li strong {
    font-size: 21px;
    font-weight: 800;
}

.leaflet-wrap .feat-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    line-height: 22px;
    text-align: center;
    font-weight: 900;
}

.leaflet-wrap .feat-list li.no-bullet {
    padding-left: 0;
}

.leaflet-wrap .feat-list li.no-bullet::before {
    display: none;
}

.leaflet-wrap .sub-txt {
    display: block;
    font-size: 17.5px;
    color: #64748b;
    margin-top: 6px;
    font-weight: 500;
    line-height: 1.45;
}

.leaflet-wrap .img-box {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
}

.leaflet-wrap .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 프로필 컨테이너 가로 여백 및 배치 */
.doctor-profile-box {
    display: flex;
    flex-direction: column;
    gap: 15px; /* 그룹 간의 간격 */
}

/* 상단 태그 */
.profile-feature-tag {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    width: fit-content;
}
.profile-feature-tag.tag-blue {
    background-color: #e0f2fe;
    color: var(--primary-blue);
}

/* 정보 그룹 공통 스타일 (학력/경력/수상 단위) */
.profile-info-group {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1px; /* 항목 간의 간격 */
}

/* 1. 메인 아이템 (그룹의 첫 번째 항목 - 블릿 적용) */
.profile-info-group .group-main-item {
    font-size: 16px;
    color: #334155;
    position: relative;
    padding-left: 16px; /* 블릿 공간만큼 왼쪽 여백 확보 */
    line-height: 1.6;
}

/* 첫 번째 항목 왼쪽에 들어가는 동그라미 블릿 */
.profile-info-group .group-main-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

/* 2. 서브 아이템 (두 번째 항목부터 - 블릿은 없고 빈칸 들여쓰기 유지) 💡 수정된 부분 */
.profile-info-group .group-sub-item {
    font-size: 16px;
    color: #334155;
    padding-left: 16px; /* 메인 아이템과 동일한 여백을 주어 시작 위치를 맞춤 */
    line-height: 1.6;
}

/* 컬러 바리에이션 제어 (메인 블릿 색상 선언) */
.group-blue .group-main-item::before {
    background-color: var(--primary-blue);
}
.group-orange .group-main-item::before {
    background-color: var(--primary-orange);
}
.group-pink .group-main-item::before {
    background-color: var(--primary-pink);
}
.group-mint .group-main-item::before {
    background-color: var(--primary-mint);
}
.group-yellow .group-main-item::before {
    background-color: var(--primary-yellow);
}
.group-red .group-main-item::before {
    background-color: var(--primary-red);
}
.group-brown .group-main-item::before {
    background-color: var(--primary-brown);
}

/* 내부 강조 텍스트 타이틀 */
.profile-info-group li strong {
    color: var(--text-main);
    display: block;
    font-size: 17px;
    font-weight: 700;
}

/* 영어 서체 크기 축소 설정 */
.profile-info-group .eng-text {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}
.pdf-download-container {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px dashed #e2e8f0;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #263660 0%, #42639a 100%);
    color: #fff !important;
    font-size: 20px;
    font-weight: 800;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 10px 20px rgba(38, 54, 96, 0.2);
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
}

.pdf-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(38, 54, 96, 0.35);
    background: linear-gradient(135deg, #1d2b4d 0%, #355383 100%);
}

.pdf-download-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* main-header 표준 (10.html 기준) */
.main-header {
    background-color: #f9be24;
    border-radius: 9px;
    text-align: center;
    padding: 14px 12px;
    margin-bottom: 20px;
}

.main-header .sub-text {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}

.main-header .main-text {
    color: #162a74;
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
}

.main-header .highlight-red {
    color: #d93333;
    font-weight: 900;
}
.subject-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.subject-item {
    display: flex;
    align-items: center;
    background-color: #fdf6e2;
    border-radius: 6px;
    padding: 8px 12px;
    box-sizing: border-box;
}

.subject-title {
    width: 200px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.orange-icon {
    color: #ff9d00;
    font-size: 19px;
    flex-shrink: 0;
}

.subject-title span {
    color: #222222;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.subject-details {
    color: #444444;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.5px;
    padding-left: 10px;
    border-left: 1px solid #e6dcc3;
}

.symptom-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 4px;
}

.symptom-tag {
    background-color: rgba(255, 188, 0, 0.1);
    border: 1px solid #ffbc00;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 19px;
    color: #ffbc00;
    font-weight: 500;
    transition: all 0.2s ease;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 12px;
}

.gallery-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-item {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.gallery-desc {
    padding: 14px;
    font-size: 19px;
    font-weight: 700;
    color: #334155;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .leaflet-wrap,
    .leaflet-vertical-wrapper {
        padding: 16px;
    }

    .leaflet-wrap .title-bar {
        font-size: 17px;
        padding: 12px 14px;
    }

    .sub-section-title span {
        font-size: 18px;
    }

    .leaflet-wrap .feat-list li {
        font-size: 16px;
    }

    .leaflet-wrap .feat-list li strong {
        font-size: 18px;
    }

    .leaflet-wrap .sub-txt {
        font-size: 14.5px;
    }

    .main-header {
        padding: 10px 8px;
    }
    .main-header .main-text {
        font-size: 24px;
    }

    .main-header .sub-text {
        font-size: 20px;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .doc-grid .doc-item {
        width: calc(50% - 10px);
        max-width: 120px;
    }

    .diagram-with-desc {
        flex-direction: column;
        align-items: stretch;
    }

    .diagram-with-desc .circle-diagram-wrapper {
        margin: 0 auto;
    }

    .clinic-desc-box {
        /* font-size: 17px; */
        padding: 16px 10px;
    }

    .symptom-tag {
        font-size: 14px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .detail-item-layout {
        flex-direction: column;
    }

    .detail-item-media {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .detail-item {
        padding: 8px 10px;
    }

    .detail-item-title {
        font-size: 20px;
    }

    .detail-item-content {
        font-size: 18px;
    }
    .subject-title span {
        color: #222222;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: -0.5px;
        line-height: 1.2;
    }

    .subject-details {
        color: #444444;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: -0.5px;
        padding-left: 10px;
        border-left: 1px solid #e6dcc3;
    }
}
