@charset "utf-8";

/* [1] 공통 레이아웃 - 0301.css 기준 */
#sub-page-container { width: 100%; overflow: hidden; text-align: center; }
.sub-visual { height: 400px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; }
.sub-visual .en-title { font-size: 18px; font-weight: 300; letter-spacing: 2px; margin-bottom: 10px; opacity: 0.9; }
.sub-visual .main-title { font-size: 42px; font-weight: 700; letter-spacing: -1px; }

/* [2] 탭 메뉴 */
.sub-tab-nav { border-bottom: 1px solid #e2e2e2; background: #fff; width: 100%; position: relative; z-index: 50; }
.tab-list { 
    display: flex; justify-content: center; max-width: 1200px; margin: 0 auto; list-style: none; padding: 0; 
    overflow-x: auto; overflow-y: hidden; white-space: nowrap; -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; -ms-overflow-style: none;
}
.tab-list li { flex: 0 0 auto; }
.tab-list li a { 
    display: block; padding: 20px 25px; font-size: 18px; color: #999; text-decoration: none; 
    position: relative; transition: 0.3s; line-height: 1.5;
}
.tab-list li a.active { color: #102476; font-weight: 700; }
.tab-list li a.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background: #102476; }

/* [3] 진료 안내 섹션 공통 스타일 */
.clinic-content-section { padding: 100px 0 80px; background: #fff; }
.inner-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.section-top-header { text-align: center; margin-bottom: 40px; }
.section-title-h3 { font-size: 32px; color: #222; letter-spacing: -0.05em; }
.section-title-h3 strong { font-weight: 700; }
.title-line-short { width: 30px; height: 2px; background: #102476; margin: 20px auto 0; }

/* [4] 하단 특징 섹션 - 0101.css 기준 */
.clinic-features-container { width: 100%; border-top: 1px solid #eee; }
.feature-section { padding: 100px 0; background: #ffffff !important; width: 100%; }
.feature-section.bg-gray { background: #f8f8f8 !important; }
.feature-row { display: flex; align-items: center; justify-content: center; gap: 70px; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-img { flex: 0 0 320px; text-align: center; }
.feature-img img { width: 100%; max-width: 350px; border-radius: 50%; box-shadow: 0 15px 30px rgba(0,0,0,0.06); background: #fff; }
.feature-text { flex: 1; max-width: 500px; text-align: left; }
.feature-text .num { font-size: 26px; font-weight: 900; color: #102476; display: block; margin-bottom: 5px; line-height: 1; }
.feature-text h4 { font-size: 34px; font-weight: 700; color: #102476 !important; margin-bottom: 20px; letter-spacing: -1px; }
.feature-text p { font-size: 20px; font-weight: 500; color: #444 !important; line-height: 1.7; word-break: keep-all; }

/* [5] 전후사진 갤러리 디자인 */
.case-filter-wrapper { margin-bottom: 50px; text-align: center; width: 100%; }
.case-filter-tabs { display: inline-flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.case-filter-tabs li a { display: block; padding: 10px 28px; border-radius: 30px; border: 1px solid #e2e2e2; color: #666; font-size: 16px; text-decoration: none; background: #fff; white-space: nowrap; }
.case-filter-tabs li.active a { background: #102476; color: #fff; border-color: #102476; font-weight: 700; }

.sub-page-gallery-list .case-list { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 30px !important; width: 100% !important; list-style: none; padding: 0; }
.sub-page-gallery-list .case-item-box { height: auto !important; border-radius: 15px !important; overflow: hidden !important; border: 1px solid #c9d6e3 !important; background: #fff !important; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.sub-page-gallery-list .case-info-header { padding: 15px 20px; background: #fff; display: flex; align-items: center; justify-content: center; gap: 15px; border-bottom: 1px solid #f0f0f0; }
.sub-page-gallery-list .case-tag { background: #102476; color: #fff; padding: 3px 10px; font-size: 13px; font-weight: 700; border-radius: 4px; }
.sub-page-gallery-list .case-subject { font-size: 16px; font-weight: 600; color: #333; }

.sub-page-gallery-list .img-box-container { display: flex !important; position: relative; height: 220px !important; }
.sub-page-gallery-list .img-box { flex: 1; position: relative; overflow: hidden; background: #000; height: 100%; }
.sub-page-gallery-list .img-box img { width: 100%; height: 100%; object-fit: cover; }

/* 하단 라벨 공통 */
.sub-page-gallery-list .label-tag { position: absolute; bottom: 0; left: 0; width: 100%; background: #b5b5b5; color: #fff; font-size: 14px; padding: 15px 0; text-align: center; z-index: 2; }

/* ★ [해결] 치료 후 라벨: 오버레이(10)보다 높게 설정 ★ */
.sub-page-gallery-list .label-tag.blue { background: #102476; z-index: 15; }

/* ★ 중앙 구분선 및 재생 버튼 최상단 배치 ★ */
.sub-page-gallery-list .center-line-ui { position: absolute; top: 0; left: 50%; width: 2px; height: 100%; background: #fff; transform: translateX(-50%); z-index: 20; }
.sub-page-gallery-list .play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 32px; height: 32px; background: #fff; border: 2px solid #0089d1; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #0089d1; font-size: 10px; z-index: 21; }

/* 비로그인 잠금 화면 디자인 */
.sub-page-gallery-list .lock-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.85); display: flex; flex-direction: column; 
    align-items: center; justify-content: center; z-index: 10; 
    padding: 15px; box-sizing: border-box; text-align: center;
}
.sub-page-gallery-list .lock-overlay p { color: #ffffff !important; font-size: 14px; font-weight: 400; line-height: 1.6; margin: 0 0 12px 0; text-align: center; word-break: keep-all; width: 100%; display: block; }
.sub-page-gallery-list .lock-btn { display: inline-block !important; background: #ffffff !important; color: #333333 !important; padding: 6px 22px !important; border-radius: 50px !important; font-size: 13px !important; font-weight: 700 !important; cursor: pointer; text-decoration: none; white-space: nowrap !important; width: auto !important; height: auto !important; }

.case-btn-container { text-align: center; margin: 60px 0 100px; }
.btn-load-more { display: inline-block; padding: 15px 80px; background: #102476 !important; color: #ffffff !important; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 18px; transition: 0.3s; border: none; }

/* [6] 반응형 모바일 최적화 */
@media screen and (max-width: 768px) {
    .sub-visual { height: 250px; }
    .tab-list li { width: 25%; }
    .tab-list li a { font-size: 14px; padding: 15px 0; }
    .case-filter-wrapper { overflow: hidden; margin: 30px 0; }
    .case-filter-tabs { display: flex; justify-content: flex-start; padding: 0 20px 15px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
    .case-filter-tabs::-webkit-scrollbar { display: none; }
    .case-filter-tabs li { flex: 0 0 auto; }
    .case-filter-tabs li a { padding: 8px 20px; font-size: 14px; }
    .feature-row, .feature-row.reverse { flex-direction: column !important; text-align: center; gap: 30px; }
    .feature-img { flex: 0 0 auto; width: 280px; margin: 0 auto; }
    .sub-page-gallery-list .case-list { grid-template-columns: 1fr !important; gap: 20px !important; padding: 0 15px; }
    .sub-page-gallery-list .img-box-container { height: 180px !important; }
    .btn-load-more { width: 90%; padding: 15px 0; font-size: 16px; }
    .sub-page-gallery-list .lock-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 80%; 
    background: rgba(0,0,0,0.85); display: flex; flex-direction: column; 
    align-items: center; justify-content: center; z-index: 10; 
    padding: 15px; box-sizing: border-box; text-align: center;
}
    .sub-page-gallery-list .lock-btn { display: inline-block !important; background: #ffffff !important; color: #333333 !important; padding: 6px 22px !important; border-radius: 50px !important; font-size: 13px !important; font-weight: 700 !important; cursor: pointer; text-decoration: none; white-space: nowrap !important; width: auto !important; height: auto !important; }

}