/* 
이벤트 기간 수정 방법:
.event-items-section {
    --event-period: '2024.01.01 ~ 2024.12.31';  // 모든 이벤트 통일 기간
}

또는 JavaScript에서:
updateEventPeriodByCSS('2024.01.01 ~ 2024.12.31');
*/

/* 기본 리셋 및 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    background: #1a1a2e;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: transparent;
}

/* 백그라운드 동영상 */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.fallback-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: -1;
}



/* 하단 그라데이션 오버레이 */
.bottom-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(0, 0, 0, 0.9) 15%, 
        rgba(0, 0, 0, 0.8) 30%, 
        rgba(0, 0, 0, 0.6) 50%, 
        rgba(0, 0, 0, 0.3) 70%, 
        rgba(0, 0, 0, 0.1) 85%, 
        transparent 100%);
    padding: 60px 15px 15px 15px;
    z-index: 2;
    min-height: 300px;
}


/* 메인 헤딩 */
.main-heading {
    margin-bottom: 20px;
}

.main-heading h1 {
    color: white;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.5px;
}

.main-heading h1 .first-line {
    font-weight: 500;
    font-size: 18px;
    opacity: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.main-heading h1 .second-line {
    font-weight: 900;
    font-size: 37px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.9);
}

.main-heading p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 6px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
    font-weight: 500;
}


/* 이벤트 버튼 */
.event-button {
    width: 100%;
    background: #CC3333;
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFF;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.event-button:hover {
    background: #B32D2D;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(204, 51, 51, 0.4);
}

.event-button:active {
    transform: translateY(0);
}

.arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.event-button:hover .arrow {
    transform: translateY(2px);
}

/* 하단 고정 CTA: 상담/문의 버튼 스크롤 시 고정 */
.event-button.fixed {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    width: calc(100% - 30px);
    max-width: 480px;
    z-index: 1000;
    margin: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}


/* PC에서 모바일 화면으로 보이도록 (모바일만 제공하는 페이지이므로 제거) */
/* @media (min-width: 481px) {
    body {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        min-height: 100vh;
        background: #0f0f0f;
        padding: 20px 0;
    }
    
    .container {
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
        border-radius: 20px;
        overflow: hidden;
        position: relative;
    }
    
    .background-video,
    .fallback-background {
        border-radius: 20px;
    }
} */

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: #4ecdc4;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #45b7b8;
}

/* 이벤트 섹션 */
.events-section {
    background: #f8f9fa;
    padding: 30px 0;
    width: 100%;
}

.events-container {
    padding: 0 15px;
}

/* 슬라이딩 이벤트 */
.sliding-events {
    margin-bottom: 30px;
}

/* 슬라이딩 이벤트 상단 고정 */
.sliding-events.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(248, 249, 250, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 20px;
    margin: 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16), 0 3px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(-8px);
    transition: none;
    will-change: opacity, transform;
}

.sliding-events.sticky.animate {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.sliding-events.sticky.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.sliding-events.sticky .events-slider {
    max-width: 480px;
    margin: 0 auto;
}

.events-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.events-slider::-webkit-scrollbar {
    height: 4px;
}

.events-slider::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.events-slider::-webkit-scrollbar-thumb {
    background: #CC3333;
    border-radius: 2px;
}

.event-card {
    flex: 0 0 140px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-image {
    width: 100%;
    height: 90px;
    overflow: hidden;
    position: relative;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.15), transparent);
    padding: 10px 8px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.event-description {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.event-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* 고정 이벤트 버튼들 */
.fixed-events {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fixed-event-row {
    display: flex;
    gap: 15px;
}

.fixed-event-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 55px;
}

.fixed-event-btn.primary {
    background: #CC3333;
    color: white;
    box-shadow: 0 4px 15px rgba(204, 51, 51, 0.3);
}

.fixed-event-btn.primary:hover {
    background: #B32D2D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 51, 51, 0.4);
}

.fixed-event-btn.secondary {
    background: white;
    color: #333;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.fixed-event-btn.secondary:hover {
    background: #f8f9fa;
    border-color: #CC3333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.fixed-event-btn.secondary:active {
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn-text {
    font-size: 12px;
    font-weight: 600;
}


/* 이벤트 항목 섹션 */
.event-items-section {
    background: #ffffff;
    padding: 30px 0;
    width: 100%;
    
    /* 통일된 이벤트 기간 CSS 변수 */
    --event-period: '2026.10.01 ~ 2026.10.31';
    --event-period2: '2026.10.01 ~ 2026.10.31';
}

.event-items-container {
    padding: 0 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 900;
    color: #333;
    margin-bottom: 8px;
}

.section-header p {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.event-items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.event-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    min-height: 180px;
}

.event-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.event-badge {
    display: inline-block;
    background: #CC3333;
    color: white;
    padding: 3px 6px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.event-item-content {
    padding: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-item-content h3 {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.3;
}

.event-item-content p {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
    flex: 1;
}

.event-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.original-price {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
}

.sale-price {
    font-size: 14px;
    font-weight: 700;
    color: #CC3333;
}

.event-period {
    font-size: 10px;
    color: #999;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: auto;
}


.event-period2 {
    font-size: 10px;
    color: #999;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: auto;
}

/* 모든 이벤트 항목이 동일한 기간 사용 */
.event-item .event-period::before {
    content: var(--event-period);
}

/* 두 번째 이벤트 섹션 (단일 그리드) */
.event-items-section-single {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 30px 0;
}

.event-items-grid-single {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.event-items-grid-single .event-item {
    min-height: 140px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.event-items-grid-single .event-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.event-items-grid-single .event-item-content {
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-items-grid-single .event-item-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.event-items-grid-single .event-item-content p {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
    flex: 1;
}

.event-items-grid-single .event-price {
    display: flex;
    gap: 0px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: flex-end;
}

.event-items-grid-single .original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.event-items-grid-single .sale-price {
    font-size: 18px;
    font-weight: 700;
    color: #CC3333;
}

.event-items-grid-single .event-badge {
    display: inline-block;
    background: #CC3333;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}


/* 유튜브 슬라이드 섹션 */
.youtube-section {
    background: #ffffff;
    padding: 30px 0;
    width: 100%;
    border-top: 1px solid #e9ecef;
}

.youtube-container {
    padding: 0 15px;
}

.youtube-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
}

.youtube-slide {
    display: none;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.youtube-slide.active {
    display: block;
}

.youtube-slide:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.youtube-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    cursor: pointer;
}

.youtube-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.youtube-slide:hover .youtube-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.youtube-slide:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.youtube-info {
    padding: 15px;
}

.youtube-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.youtube-info p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* 슬라이드 네비게이션 */
.slider-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* 인기 시술 섹션 */
.popular-procedures-section {
    background: #ffffff;
    padding: 30px 0;
    width: 100%;
    border-top: 1px solid #e9ecef;
}

.popular-procedures-container {
    padding: 0 15px;
}

/* 시술 전후 비교 섹션 */
.before-after-section {
    background: #ffffff;
    padding: 30px 0;
    width: 100%;
    border-top: 1px solid #e9ecef;
}

.before-after-container {
    padding: 0 15px;
}

.before-after-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.before-after-comparison {
    position: relative;
    width: 100%;
    max-width: 640px;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background: #eee;
}

/* 상단 좌측 시술명 태그 */
.ba-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: #ffffff;
    color: #CC3333;
    border: 2px solid #CC3333;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.ba-img.after {
    clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.ba-divider {
    position: absolute;
    left: calc(var(--pos, 50%));
    top: 0;
    bottom: 0;
    width: 3px;
    background: #b02a2a;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* ba-label 제거 */
.ba-label { display: none; }

.ba-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: ew-resize;
    /* 입력 가능해야 터치/키보드 접근성 보장 */
    pointer-events: auto;
}

.ba-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1px; /* 사실상 보이지 않게 */
    height: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
}

.ba-slider::-moz-range-thumb {
    width: 1px;
    height: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
}

.ba-slider::-webkit-slider-runnable-track {
    height: 100%;
    background: transparent;
}

.ba-slider::-moz-range-track {
    height: 100%;
    background: transparent;
}

/* 커스텀 원형 핸들 (분할선과 함께 이동) */
.ba-handle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #b02a2a;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    pointer-events: none;
}

/* 분할선 좌우에 떨어진 화살표 */
.ba-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}

.ba-arrow.left {
    right: calc(50% + 3px); /* 핸들 오른쪽 가장자리에서 떨어뜨림 */
    border-right: 8px solid #b02a2a; /* 왼쪽 위치의 화살표는 오른쪽 방향 */
}

.ba-arrow.right {
    left: calc(50% + 3px);
    border-left: 8px solid #b02a2a;  /* 오른쪽 위치의 화살표는 왼쪽 방향 */
}

.before-after-cta {
    display: flex;
    align-items: center;
    justify-content: center;
}

.before-after-btn {
    background: #CC3333;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    max-width: 480px;
}

.before-after-btn:hover {
    background: #B32D2D;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(204,51,51,0.25);
}


/* 전후 썸네일 갤러리 */
.before-after-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 16px 0 10px 0;
}

.ba-thumb {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ba-thumb:hover { 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ba-thumb.active {
    border-color: #CC3333;
    box-shadow: 0 6px 16px rgba(204,51,51,0.18);
}

.ba-thumb img {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.procedures-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.procedures-track {
    display: flex;
    gap: 12px;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    will-change: transform;
}

.procedure-card {
    flex: 0 0 240px;
    background: white;
    border: none;
    border-radius: 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.procedure-card:hover {
    box-shadow: 0 6px 24px rgba(204, 51, 51, 0.15);
    transform: translateY(-4px);
}

.procedure-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.procedure-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #CC3333 0%, #ff6666 100%);
}

.procedure-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.procedure-card:hover .procedure-image img {
    transform: scale(1.05);
}

.procedure-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.procedure-title {
    font-size: 15px;
    font-weight: 800;
    color: #CC3333;
    margin: 0;
    text-align: left;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.procedure-description {
    font-size: 12px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    text-align: left;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.procedure-pricing {
    padding: 16px 18px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.price-option:last-child {
    border-bottom: none;
}

.option-name {
    font-size: 12px;
    color: #333;
    font-weight: 600;
    flex: 1;
    line-height: 1.4;
    padding-right: 10px;
}

.price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    text-align: right;
}

.price-info .original-price {
    font-size: 10px;
    color: #aaa;
    text-decoration: line-through;
    line-height: 1;
}

.price-info .sale-price {
    font-size: 15px;
    font-weight: 800;
    color: #CC3333;
    line-height: 1.2;
}


/* 유튜브 쇼츠 섹션 */
.youtube-shorts-section {
    background: #f8f9fa;
    padding: 30px 0;
    width: 100%;
    border-top: 1px solid #e9ecef;
}

.youtube-shorts-container {
    padding: 0 15px;
}

.shorts-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.shorts-track {
    display: flex;
    gap: 12px;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    will-change: transform;
}

.shorts-card {
    flex: 0 0 160px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}

.shorts-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.shorts-thumbnail {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.shorts-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shorts-card:hover .shorts-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.shorts-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.shorts-info {
    padding: 12px;
}

.shorts-info h3 {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.3;
}

.shorts-info p {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

.play-button svg {
    width: 35px;
    height: 35px;
}

/* 브랜드 스토리 섹션 */
.brand-story-section {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #CC3333 0%, #B32D2D 50%, #991F1F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 15px;
    overflow: hidden;
}

/* 배경 장식 패턴 */
.brand-story-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.brand-story-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.brand-story-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.brand-panel {
    width: 100%;
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border-radius: 24px;
    padding: 50px 35px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

/* 카드 상단 장식 라인 */
.brand-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #CC3333 0%, #ff6666 100%);
    border-radius: 0 0 4px 4px;
}

.brand-header {
    margin-bottom: 45px;
    position: relative;
}

/* 헤더 배경 장식 */
.brand-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #CC3333 50%, transparent 100%);
    border-radius: 2px;
}

.brand-name {
    font-size: 32px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 18px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.brand-value {
    font-size: 40px;
    font-weight: 900;
    background: linear-gradient(135deg, #CC3333 0%, #ff4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.brand-values {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 45px;
    flex-wrap: nowrap;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    flex: 1 1 0;
    min-width: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.value-item:hover {
    transform: translateY(-8px) scale(1.05);
}

/* 아이템 사이 구분선 */
.value-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -17.5px;
    top: 20%;
    width: 1px;
    height: 60%;
    background: linear-gradient(180deg, transparent 0%, #e0e0e0 50%, transparent 100%);
}

.value-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 2px 4px rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #ffffff;
    position: relative;
}

/* 이미지 테두리 애니메이션 */
.value-image::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #CC3333 0%, #ff6666 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.value-item:hover .value-image::before {
    opacity: 1;
}

.value-item:hover .value-image {
    box-shadow: 0 12px 32px rgba(204, 51, 51, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.9);
    transform: rotate(5deg);
}

.value-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.value-item:hover .value-image img {
    transform: scale(1.1);
}

.value-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.3px;
    font-family: 'Noto Sans SC', sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.value-item:hover .value-title {
    color: #CC3333;
    transform: scale(1.1);
}

.brand-message {
    text-align: center;
    line-height: 2;
    padding-top: 35px;
    border-top: 2px solid transparent;
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(90deg, transparent 0%, #e0e0e0 20%, #e0e0e0 80%, transparent 100%) border-box;
    position: relative;
}

/* 메시지 상단 장식 */
.brand-message::before {
    content: '✦';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    color: #CC3333;
    background: #ffffff;
    padding: 0 12px;
}

.message-line {
    margin: 12px 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.1px;
    font-family: 'Noto Sans SC', sans-serif;
    transition: transform 0.3s ease;
}

.message-line:hover {
    transform: scale(1.02);
}

.message-line.red {
    color: #CC3333;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(204, 51, 51, 0.1);
}

.message-line.black {
    color: #2a2a2a;
}

.message-line.bold {
    font-weight: 900;
    font-size: 20px;
    margin: 18px 0;
    background: linear-gradient(135deg, #CC3333 0%, #ff4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

@media (max-width: 480px) {
    .brand-story-section {
        padding: 40px 15px;
    }
    
    .brand-panel {
        padding: 35px 25px;
        border-radius: 20px;
    }
    
    .brand-header {
        margin-bottom: 45px;
    }
    
    .brand-name {
        font-size: 15px;
        letter-spacing: 1.5px;
        margin-bottom: 0px;
    }
    
    .brand-value {
        font-size: 32px;
        letter-spacing: 0px;
    }
    
    .brand-values {
        gap: 20px;
        margin-bottom: 35px;
    }
    
    .value-item:not(:last-child)::after {
        right: -10px;
    }
    
    .value-item {
        flex: 1 1 0;
    }
    
    .value-image {
        width: 95px;
        height: 95px;
        border: 2px solid #ffffff;
    }
    
    .value-image::before {
        inset: -2px;
    }
    
    .value-title {
        font-size: 17px;
    }
    
    .brand-message {
        padding-top: 28px;
    }
    
    .brand-message::before {
        top: -10px;
        font-size: 18px;
        padding: 0 10px;
    }
    
    .message-line {
        font-size: 13px;
        margin: 2px 0;
    }
    
    .message-line.bold {
        font-size: 17px;
        margin: 14px 0;
    }
}


.nav-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: #CC3333;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-btn:hover {
    background: #B32D2D;
    transform: scale(1.1);
}

.nav-btn:active {
    transform: scale(0.95);
}

.slider-dots {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #CC3333;
}

.dot:hover {
    background: #B32D2D;
}

.play-button svg {
    width: 50px;
    height: 50px;
}

/* 오시는 길 섹션 */
.contact-section {
    background: #f8f9fa;
    padding: 40px 15px;
    width: 100%;
    border-top: 1px solid #e9ecef;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: #333;
    margin-bottom: 35px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

.contact-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #CC3333;
    border-radius: 2px;
}

/* 지도 카드 */
.map-card {
    width: 100%;
    margin-bottom: 25px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.map-placeholder {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 정보 카드들 */
.info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5f5f5;
}

.info-icon {
    color: #CC3333;
    flex-shrink: 0;
}

.info-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.info-card-content {
    margin-top: 8px;
}

/* 주소 정보 */
.address-main {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.6;
    margin-bottom: 6px;
}

.address-sub {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
}

/* 진료시간 테이블 */
.hours-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-day {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

.hours-separator {
    font-size: 14px;
    color: #ddd;
    text-align: center;
}

.hours-time {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* 푸터 섹션 */
.footer-section {
    background: #a73339;
    padding: 40px 20px 100px;
    width: 100%;
    border-top: 1px solid #d0d0d0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
}

.footer-container {
    max-width: 600px;
    margin: 0 auto;
}

.footer-brand {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.5px;
}

.footer-info {
    margin-bottom: 25px;
}

.footer-info p {
    font-size: 13px;
    color: #fff;
    line-height: 1.8;
    margin: 0 0 6px 0;
    font-weight: 400;
    letter-spacing: -0.2px;
}

.footer-copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copyright p {
    font-size: 12px;
    color: #fff;
    margin: 0;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    .footer-section {
        padding: 35px 20px 90px;
    }
    
    .footer-brand {
        font-size: 18px;
        margin-bottom: 18px;
    }
    
    .footer-info {
        margin-bottom: 20px;
    }
    
    .footer-info p {
        font-size: 12px;
        line-height: 1.7;
        margin-bottom: 5px;
    }
    
    .footer-copyright {
        padding-top: 18px;
    }
    
    .footer-copyright p {
        font-size: 11px;
    }
}


@media (min-width: 768px) {
    body{
        width:480px;
        margin-left: auto;
        margin-right: auto;
    }


}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    background: #f5f5f5;
    margin: 20px;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 25px 25px 20px;
    background: #f5f5f5;
}

.modal-title-section {
    flex: 1;
}

.modal-brand {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.3px;
}

.modal-title {
    font-size: 28px;
    font-weight: 900;
    color: #CC3333;
    margin: 0;
    line-height: 1.2;
    font-family: 'Noto Sans SC', sans-serif;
}

.modal-close {
    background: none;
    border: none;
    color: #CC3333;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 10px;
}

.modal-close:hover {
    background: rgba(204, 51, 51, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px 25px 30px;
}

.consultation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.consultation-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.consultation-item:hover {
    transform: translateY(-5px);
}

.consultation-img {
    width: 100%;
    aspect-ratio: 1;
    background: #d0d0d0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.consultation-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.consultation-item:hover .consultation-img {
    background: #c0c0c0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.consultation-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.modal-instruction {
    text-align: center;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

/* QR 코드 모달 */
.qr-modal-content {
    max-width: 400px;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.qr-code-image {
    width: 250px;
    height: 250px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #999;
    font-size: 16px;
    overflow: hidden;
}

.qr-code-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-info {
    text-align: center;
    padding: 20px;
    margin-top: 10px;
}

.qr-info-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.qr-info-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.qr-info-id {
    font-size: 14px;
    color: #666;
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 20px 20px 15px;
    }
    
    .modal-brand {
        font-size: 14px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-close {
        width: 28px;
        height: 28px;
    }
    
    .modal-body {
        padding: 15px 20px 25px;
    }
    
    .consultation-grid {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .consultation-label {
        font-size: 12px;
    }
    
    .modal-instruction {
        font-size: 12px;
        padding: 12px;
    }
    
    .qr-code-image {
        width: 200px;
        height: 200px;
    }
}

/* 후기 모달 스타일 */
.reviews-modal-content {
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.reviews-modal-content .modal-body {
    overflow-y: auto;
    padding: 20px 25px 30px;
    flex: 1;
}

.reviews-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-image-item {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* 태그 위치를 위한 relative positioning */
}

.review-image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.review-image-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1700 / 1000; /* 1700px : 1000px 비율 유지 */
    object-fit: cover;
}

/* 후기 사진 상단 좌측 시술명 태그 (전후 비교 슬라이더와 동일한 스타일) */
.review-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: #ffffff;
    color: #CC3333;
    border: 2px solid #CC3333;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 모바일 최적화 - 후기 모달 */
@media (max-width: 480px) {
    .reviews-modal-content {
        max-width: 95%;
        max-height: 90vh;
    }
    
    .reviews-modal-content .modal-body {
        padding: 15px 20px 25px;
    }
    
    .reviews-gallery {
        gap: 15px;
    }
    
    .review-image-item {
        border-radius: 10px;
    }
}

