@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap'); /* font-family: 'Inter', sans-serif; */

/* #content */
section .main_title {letter-spacing: -0.02em; line-height: 56px; margin-bottom: 20px;}
section .main_title.on {display: none;}
section .sub_text {letter-spacing: -0.02em;}

.img_box img {width: 100%;}


.sub_visual {padding: 130px 0; text-align: center; background: rgba(240, 235, 255, .5);}
.sub_visual h1 {font-size: 72px; line-height: 1em; letter-spacing: -1px;}


.tab_area .inner {padding: 0 16.66%; margin-top: 100px;}
.tab_area .inner .tab_con .con {padding: 60px 5% 60px 10%; box-sizing: border-box; border-radius: 20px; background: #FAFAFA;}
.tab_area .inner .tab_con .con ul {display: flex; gap: 20px; align-items: center; flex-wrap: wrap;}
.tab_area .inner .tab_con .con ul li input[type="radio"] {display: none;}
.tab_area .inner .tab_con .con ul li label {display: block; border-radius: 190px; padding: 0 30px; line-height: 40px; box-sizing: border-box; cursor: pointer;
    background: #F0EBFF; color: #713FFF; font-size: 18px; font-weight: 500; letter-spacing: -1px; white-space: nowrap;}
.tab_area .inner .tab_con .con ul li input[type="radio"]:checked + label {background: #713FFF; color: #fff;}

.tab_area .inner .tab_con .tab_detail .details {display: grid; grid-template-columns: 100px auto; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 20px;}
.tab_area .inner .tab_con .tab_detail .details .label_title {font-size: 22px; font-weight: 700; line-height: 130%; letter-spacing: -1px; white-space: nowrap; cursor: default;}
.tab_area .inner .tab_con .tab_detail .sch_btn {display: inline-block; line-height: 50px; height: 50px; font-size: 18px; font-weight: 500; letter-spacing: -1px; color: #fff;
    padding: 0 45px; border-radius: 190px; background: #713FFF; position: relative; left: 50%; transform: translateX(-50%); margin-top: 20px;}


.list_box {padding: 0 16.66%; margin-bottom: 80px;}
.list_box .banner {font-size: 26px; letter-spacing: -1px; text-align: center; padding: 20px 0; margin: 50px 0; background: #FAFAFA; border-radius: 16px;}
.list_box > ul {display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 20px; row-gap: 52px;}
.list_box > ul > li > a {display: block;}
.list_box > ul > li {padding: 16px 4% 25px; border-radius: 16px; border: 1px solid #DFE0E2;}
.list_box > ul > li .img_box {position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 20px;}
.list_box > ul > li .img_box img {height: 100%; object-fit: cover;}
.list_box > ul > li .img_box ul {display: flex; border-radius: 20px; overflow: hidden;}
.list_box > ul > li .img_box ul .before_box {width: 50%;}
.list_box > ul > li .img_box ul .after_box {width: 50%;}
.list_box > ul > li .img_box .blur {width: 50%; height: 100%; background: rgba(0,0,0, .85); backdrop-filter: blur(2px); position: absolute; top: 0; right: 0; z-index: 10;}
.list_box > ul > li .img_box .blur p {width: 100%; height: 100%; font-weight: 500; font-size: 18px; line-height: 26px; letter-spacing: -.26px; color: #fff; 
    text-align: center; display: flex; align-items: center; justify-content: center;}
.list_box > ul > li .img_box .subject_box {width: 103px; height: 103px; border-radius: 100px; background: rgba(12, 130, 254, .8); 
    display: flex; justify-content: center; align-items: center; text-align: center; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 20;}
.list_box > ul > li .img_box .subject_box p {font-weight: 700; font-size: 18px; line-height: 120%; color: #FFF;}
.list_box > ul > li .text_box {font-weight: 500;} 
.list_box > ul > li .text_box .title_target .badge {display: inline-block; line-height: 24px; height: 24px; font-size: 15px; letter-spacing: -1px; color: #fff;
    padding: 0 10px; background: #713FFF; border-radius: 100px; text-align: center;} 
.list_box > ul > li .text_box .title_target .badge span {display: inline-block;} 
.list_box > ul > li .text_box .title_target .badge span:first-of-type::after {content: ''; display: inline-block; width: 1px; height: .8rem; 
    background: rgba(255,255,255,.8); margin: 0 .5rem; vertical-align: middle;} 
.list_box > ul > li .text_box .title_target strong {display: block; font-weight: 500; font-size: 16px; letter-spacing: -1px; color: #777C81; margin: 12px 0 10px;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden;} 
.list_box > ul > li .text_box .title_treatment {font-size: 18px; letter-spacing: -1px; margin: 10px 0; color: #713FFF; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden;} 


.btn_write {display: inline-block; outline: none; line-height: 50px; height: 50px; padding: 0 30px; border: 1px solid #777C81; border-radius: 100px; background: #fff;
    font-size: 18px; letter-spacing: -1px; white-space: nowrap; position: relative; left: calc(100% - 105px); margin-bottom: 32px;}
.btn_write::after {display: none !important;}


.btn-edit {display: inline-block; font-weight: 500; font-size: 14px; line-height: 18px; color: #fff; padding: 6px 12px; border-radius: 4px;
    background: #001E3D; position: absolute; top: 14px; right: 14px;}


/* PC (해상도 1440px ~ 1540px) */
@media screen and (max-width:1540px) {
    .tab_area .inner {padding: 0 12%;}
    .list_box {padding: 0 12%;}
    .btn_write {right: calc(12% + 20px);}
}
/* PC (해상도 1058px ~ 1440px) */
@media screen and (max-width:1440px) {
    .tab_area .inner {padding: 0 8%;}
    .list_box {padding: 0 8%;}
    .btn_write {right: calc(8% + 20px);}
}
/* PC (해상도 1024px ~ 1058px) */
@media screen and (max-width:1058px) {
    .tab_area .inner {padding: 0 6%;}
    .list_box {padding: 0 6%;}
    .btn_write {right: calc(6% + 20px);}
}


/* 태블릿 (해상도 769px ~ 1024px) */
@media screen and (max-width:1024px) {
    /* content */
    section .main_title {font-size: 28px; margin-bottom: 12px; line-height: 36px;}
    section .main_title i {display: block;}


    .sub_visual {padding: 80px 0;}
    .sub_visual h1 {font-size: 64px;}


    .tab_area .inner {padding: 0 5%; margin-top: 80px;}
    .tab_area .inner .tab_con .con ul {gap: 12px;}
    
    .tab_area .inner .tab_con .tab_detail .details {grid-template-columns: 70px auto; gap: 12px;}


    .list_box {padding: 0 5%; margin-bottom: 60px;}
    .list_box .banner {font-size: 20px; margin: 20px 0;}
    .list_box > ul {grid-template-columns: repeat(2, 1fr); column-gap: 10px; row-gap: 40px;}
    .list_box > ul > li .img_box ul {border-radius: 10px; height: 252px;}
    .list_box > ul > li .text_box .title_target {display: flex; gap: 10px;}
    .list_box > ul > li .text_box .title_target .badge {flex-shrink: 0; line-height: 20px; height: 20px; font-size: 13px; padding: 0 8px;} 
    .list_box > ul > li .text_box .title_target strong {flex-grow: 1; font-size: 14px; margin: 0; -webkit-line-clamp: 2;} 
    .list_box > ul > li .text_box .title_treatment {font-size: 16px; margin: 8px 0; -webkit-line-clamp: 2;} 


    .btn_write {display: none;}
}

/* 모바일 가로, 모바일 세로 (해상도 375px ~ 768px)*/
@media screen and (max-width:768px) {
    .wrap { min-width: 375px; }
    /* content */
    .sub_visual {padding: 50px 5%;}
    .sub_visual h1 {font-size: 34px;}


    .tab_area .inner {margin-top: 60px;}
    .tab_area .inner .tab_con .con {padding: 24px 5%; border-radius: 16px;}
    .tab_area .inner .tab_con .con ul {gap: 10px;}
    .tab_area .inner .tab_con .con ul li label {padding: 0 10px; line-height: 30px; background: #F0EBFF; font-size: 14px; color: #713FFF;}
    
    .tab_area .inner .tab_con .tab_detail .details {align-items: start; grid-template-columns: 30px auto; gap: 16px; margin-bottom: 24px;}
    .tab_area .inner .tab_con .tab_detail .details .label_title {font-size: 16px; line-height: 30px; font-weight: 500;}
    .tab_area .inner .tab_con .tab_detail .sch_btn {line-height: 40px; height: 40px; font-size: 16px; padding: 0 30px; margin-top: 0;}


    .list_box .banner {font-size: 18px;}
    .list_box > ul {grid-template-columns: 1fr; gap: 20px;}
}


/* 전후사진 하단 고정 안내·부작용 문구 (2026.08.21) */
/* 페이지네이션 하단 여백 축소 (theme board.page.css 의 margin-bottom:150px 를 이 게시판에서만 조정) */
.list_box .pg_wrap {margin-bottom: 40px;}
.list_box .photo_notice {margin-top: 0; padding: 0 0 10px;}
.list_box .photo_notice ul {display: block; text-align: center;}
.list_box .photo_notice ul li {display: block; position: relative; font-size: 15px; font-weight: 400; line-height: 1.5;
    letter-spacing: 0.5px; color: #777C81;}
.list_box .photo_notice ul li::before {content: '\2022'; margin-right: 6px;}

@media screen and (max-width:1024px) {
    .list_box .pg_wrap {margin-bottom: 30px;}
    .list_box .photo_notice {margin-top: 0; padding: 0 0 8px;}
    .list_box .photo_notice ul li {font-size: 14px; line-height: 1.5; letter-spacing: 0.3px;}
}
@media screen and (max-width:768px) {
    .list_box .pg_wrap {margin-bottom: 24px;}
    .list_box .photo_notice {margin-top: 0; padding: 0 0 6px;}
    .list_box .photo_notice ul {text-align: left;}
    .list_box .photo_notice ul li {font-size: 13px; line-height: 1.6; letter-spacing: 0; padding-left: 12px; margin-bottom: 4px;}
    .list_box .photo_notice ul li::before {position: absolute; left: 0; top: 0; margin: 0;}
}

/* 전후사진 목록 사진 확대 (2026.09.29, 기획서 3p-①) */
/* 원본 230x300(세로 23:30) 비율 그대로 표시 - 좌우 여백만 줄여 카드/사진을 키움 */
/* 1920 기준 사진 폭 190px -> 약 254px, 콘텐츠 최대폭 1700px 로 제한해 초대형 화면에서 과확대(흐려짐) 방지 */
@media screen and (min-width:1025px) {
    .tab_area .inner,
    .list_box {padding-left: max(5%, calc((100% - 1700px) / 2)); padding-right: max(5%, calc((100% - 1700px) / 2));}
}

/* 전후사진 목록 제목 강조 (2026.09.29, 기획서 3p-③) - 가운데 정렬 + 볼드 + 크기 키움 */
/* PC: 제목 전체 노출(말줄임 없음) / 태블릿·모바일: 2줄까지 + 말줄임 */
.list_box > ul > li .text_box .title_treatment {text-align: center; font-weight: 700; font-size: 20px; line-height: 1.4; margin: 14px 0 0; display: block; -webkit-line-clamp: unset; overflow: visible;}
@media screen and (max-width:1024px) {
    .list_box > ul > li .text_box .title_treatment {font-size: 18px; margin: 12px 0 0; display: -webkit-box; -webkit-line-clamp: 2; overflow: hidden;}
}

/* 전후사진 라벨 오버레이 (2026.09.29, 기획서 6p-③) - 수술 후 경과기간(wr_5) 입력된 글만 */
.list_box > ul > li .img_box ul .before_box,
.list_box > ul > li .img_box ul .after_box {position: relative;}
.list_box > ul > li .img_box .cmp_label {position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: block; padding: 0 6px;
    font-size: 16px; font-weight: 700; line-height: 32px; letter-spacing: 0; color: #fff; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.list_box > ul > li .img_box .cmp_label_before {background: rgba(0, 0, 0, .85);}
.list_box > ul > li .img_box .cmp_label_after {background: rgba(113, 63, 255, .75);}
@media screen and (max-width:1024px) {
    .list_box > ul > li .img_box .cmp_label {font-size: 13px; line-height: 26px;}
}

/* PC 목록 사진 비율 고정 (2026.09.29) - 규격(690x900)과 다른 비율로 올려도 23:30 틀에 가운데 기준으로 맞춤 */
/* 기존 글은 전부 230x300(23:30)이라 변화 없음. 태블릿·모바일(<=1024)은 기존 고정높이+cover 그대로 */
@media screen and (min-width:1025px) {
    .list_box > ul > li .img_box ul li img {display: block; height: auto; aspect-ratio: 23 / 30; object-fit: cover; object-position: center;}
}

/* 제목 아래 공백 제거 (2026.09.29) - list.skin.php heightResize() 가 페이지 전체 최장 제목 높이를 모든 제목에 min-height 로 주던 것을 무력화 */
/* 같은 줄 카드 높이는 grid 가 자동으로 맞춤 */
.list_box > ul > li .text_box .title_treatment {min-height: 0 !important;}
