/* ============================================
   서브 페이지 헤더 (항상 표시)
   ============================================ */

header {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ============================================
   스크롤 아이콘 애니메이션
   ============================================ */

.scroll-icon-animate {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-icon-animate img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   깜빡이는 애니메이션
   ============================================ */

.animate-blink {
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* ============================================
   Section 4 모바일 배경 박스
   ============================================ */

.ultherapy-block-bg {
    background: rgba(255, 255, 255, 0.6);
}

@media (min-width: 1280px) {
    .ultherapy-block-bg {
        background: transparent !important;
    }
}

/* ============================================
   Section 4 반응형 배경 이미지
   ============================================ */

.ultherapy-section4-bg {
    background-image: url('../images/ultherapy_banner03_m.png');
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    .ultherapy-section4-bg {
        background-image: url('../images/ultherapy_banner03.png');
    }
}

/* ============================================
   Conference Section 스와이퍼
   ============================================ */

.swiper-conference {
    overflow: hidden;
    width: 100%;
    padding-top: 0!important;
    padding-bottom: 0!important;
}

.swiper-conference .swiper-slide {
    width: 280px !important;
    flex-shrink: 0;
    margin-right: 30px;
    overflow: visible !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px;
}

.swiper-conference .swiper-slide:last-child {
    margin-right: 0;
}

.swiper-conference .swiper-slide img {
    height: 250px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .swiper-conference .swiper-slide {
        width: 350px !important;
    }
    
    .swiper-conference .swiper-slide img {
        height: 300px !important;
    }
}

@media (min-width: 1200px) {
    .swiper-conference .swiper-slide {
        width: 500px !important;
    }
    
    .swiper-conference .swiper-slide img {
        height: 400px !important;
    }
}

/* Conference 네비게이션 버튼 스타일 */
.conference-prev,
.conference-next {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s ease;
}

.conference-prev img,
.conference-next img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.conference-prev.disabled,
.conference-next.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   Lifting 페이지 SVG 선 그리기 애니메이션
   ============================================ */

.lifting-svg .draw-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 0.3s ease;
}

.lifting-svg .draw-line.pink path,
.lifting-svg .draw-line.white {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

/* ============================================
   Lifting 페이지 아코디언 메뉴
   ============================================ */

.lifting-accordion-item {
    transition: all 0.3s ease;
}

.lifting-accordion-header {
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
}

.lifting-accordion-header:focus {
    outline: none;
}

.lifting-accordion-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 1;
}

.lifting-accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.lifting-accordion-content.active {
    max-height: 1000px;
    opacity: 1;
}

/* ============================================
   Device 스와이퍼 스타일
   ============================================ */

.swiper-device {
    overflow: hidden;
    padding-top: 0 !important;
    position: relative;
    width: 100%;
}

.swiper-device .swiper-wrapper {
    width: 100%;
}

.swiper-device .swiper-slide {
    width: 100% !important;
    height: auto !important;
}

.swiper-device .swiper-slide img {
    width: 100%;
    max-width: 400px;
    height: 500px;
    border-radius: 20px;
    display: block;
    object-fit: contain;
    background-color: #fff;
}

.swiper-pagination-device {
    position: absolute !important;
    bottom: 35px !important;
    left: 50% !important;
    transform: translateX(-50%);
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 4px;
    z-index: 10;
    width: auto !important;
}

.swiper-pagination-bullet-device {
    width: 8px;
    height: 8px;
    background: rgba(57, 18, 39, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    margin: 0 4px !important;
}

.swiper-pagination-bullet-active-device {
    background: #331f4C;
    width: 24px;
    border-radius: 4px;
}

/* ============================================
   Thermage Cases 스와이퍼 스타일
   ============================================ */

.swiper-thermage-cases {
    width: 80%;
    margin: 0 auto;
    padding-top: 0!important;
    padding-bottom: 0!important;
}

.swiper-thermage-cases .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

/* 슬라이드가 4개 이하일 때 중앙 정렬 (데스크톱만) */
@media (min-width: 768px) {
    .swiper-thermage-cases .swiper-wrapper.few-slides {
        justify-content: center;
    }
}

.swiper-thermage-cases .swiper-slide {
    width: auto;
    height: auto;
    flex-shrink: 0;
}

.thermage-case-card {
    width: 100%;
    padding: 25px 20px;
    border: 1px solid #331f4C;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    cursor: grab;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thermage-case-card:active {
    cursor: grabbing;
}

.thermage-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(57, 18, 39, 0.15);
}

/* ============================================
   Differences Section 스타일
   ============================================ */

.differences-section {
    position: relative;
    overflow: hidden;
}

.differences-subtitle,
.differences-title,
.differences-description,
.differences-keyword,
.differences-item-description {
    transition: color 0.3s ease;
}

.differences-item {
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.5);
    cursor: pointer;
    padding: 25px 20px;
}

@media (min-width: 768px) {
    .differences-item {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

.differences-item:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}

/* ============================================
   게시판 스타일
   ============================================ */
#bo_list {
    position: relative;
    margin: 50px auto 160px;
}

#bo_list:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}

#bo_list .td_board {
    width: 120px;
    text-align: center;
}

#bo_list .td_chk {
    width: 30px;
    text-align: center;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
}

#bo_list .td_date {
    width: 60px;
    text-align: center;
}

#bo_list .td_datetime {
    width: 95px;
    text-align: center;
}

#bo_list .td_group {
    width: 100px;
    text-align: center;
}

#bo_list .td_mb_id {
    width: 100px;
    text-align: center;
}

#bo_list .td_mng {
    width: 80px;
    text-align: center;
}

#bo_list .td_name {
    width: 100px;
    text-align: center;
    padding: 10px 0;
}

#bo_list .td_nick {
    width: 100px;
    text-align: center;
}

#bo_list .td_num {
    width: 90px;
    text-align: center;
}

#bo_list .td_num2 {
    width: 90px;
    text-align: center;
}

#bo_list .td_numbig {
    width: 80px;
    text-align: center;
}

#bo_list .txt_active {
    color: #5d910b;
}

#bo_list .txt_expired {
    color: #ccc;
}

#bo_list tbody tr {
    border-left: 2px solid transparent;
    transition: border-left 0.3s ease;
}
/* 검색 팝업 */
.bo_sch_wrap {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.bo_sch_wrap.hidden {
    display: none !important;
}

.bo_sch_wrap .bo_sch {
    width: calc(100% - 40px);
    max-width: 500px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .bo_sch_wrap .bo_sch {
        width: 100%;
        max-width: 600px;
    }
}

/* 카카오맵 컨트롤러 숨기기 */
.wrap_controllers {
    display: none !important;
}

/* ============================================
   공지사항 상세 페이지 스타일
   ============================================ */
#bo_v {
    margin-bottom: 20px;
    background: #fff;
    box-sizing: border-box;
    width: 100%;
}

#bo_v_title .bo_v_tit {
    word-break: break-all;
}

#bo_v_info:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}

#bo_v_info h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

#bo_v_info .profile_info {
    display: inline-block;
    float: left;
}

#bo_v_info .profile_info .pf_img {
    float: left;
    margin-right: 10px;
}

#bo_v_info .profile_info .profile_info_ct {
    float: left;
}

#bo_v_info strong {
    display: inline-block;
}

#bo_v_con img {
    max-width: 100%;
    height: auto;
}

.bo_v_images_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* ============================================
   Star Hover Effect
   ============================================ */

.title-with-star {
    cursor: pointer;
}

.title-with-star .star-icon {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.title-with-star .star-icon.left {
    transform: translateX(10px);
}

.title-with-star .star-icon.right {
    transform: translateX(-10px);
}

.title-with-star:hover .star-icon {
    opacity: 1;
}

.title-with-star:hover .star-icon.left {
    transform: translateX(0);
}

.title-with-star:hover .star-icon.right {
    transform: translateX(0);
}

/* ============================================
   리프팅 프로그레스 바
   ============================================ */

.lifting-progress-bar {
    position: relative;
    width: 100%;
    height: 50px;
    background: #A19199;
    border-radius: 10px;
    overflow: hidden;
}

.lifting-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(to bottom, #391227 0%, #391227 30%, transparent 100%);
    border-radius: 4px 0 0 4px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.lifting-progress-bar.animated .lifting-progress-fill {
    width: var(--progress, 40%);
}

.lifting-progress-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 15px;
    opacity: 0;
    transition: opacity 0.5s ease 0.8s;
}

.lifting-progress-bar.animated .lifting-progress-label {
    opacity: 1;
}

.lifting-progress-label img {
    height: 16px;
    width: auto;
}

.lifting-progress-label span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ============================================
   Thermage Banner Section
   ============================================ */

.thermage-banner-section {
    background-image: url('../images/image_thermage_banner_m.png');
}

@media (min-width: 768px) {
    .thermage-banner-section {
        background-image: url('../images/image_thermage_banner.png');
    }
}

/* 진료안내 예약 버튼 스타일 */
.reservation-btn-naver:hover {
    background-color: #00ca1d;
    color: #fff;
    border-color: #00ca1d;
}

.reservation-btn-kakao:hover {
    background-color: #ebbb14;
    color: #fff;
    border-color: #ebbb14;
}

/* ============================================
   스크롤바 스타일 (온도 그래프 영역만)
   ============================================ */

/* 웹킷 브라우저 (Chrome, Safari, Edge) */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #D9D9D9;
    margin-top: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(84, 84, 84, 0.22);
    border-radius: 0;
    margin-top: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(84, 84, 84, 0.35);
}

/* 스크롤바 컨테이너에 패딩탑 추가 */
.custom-scrollbar {
    padding-top: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(84, 84, 84, 0.22) #D9D9D9;
}


