/* 서브페이지 헤더 - 기존과 동일 */
.sub-header {
    position: relative;
    height: 400px;
    background-image: url('/assets/images/greting.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

/* 모바일에서 margin-top 제거 */
@media (max-width: 768px) {
    .sub-header {
        margin-top: 0;
    }
    
    /* 모바일 슬라이드 네비게이션 표시 */
    .mobile-slide-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
    }
    
    .mobile-slide-dots {
        display: flex;
        gap: 8px;
    }
    
    .slide-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
    }
    
    .slide-dot.active {
        background: #2c5aa0;
        width: 24px;
        border-radius: 4px;
    }
    
    /* 모바일 슬라이드 버튼 */
    .mobile-slide-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: white;
        border: 1px solid #e0e0e0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-slide-btn:active {
        transform: scale(0.95);
    }
    
    .mobile-slide-btn.disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }
    
    .mobile-slide-btn svg {
        width: 16px;
        height: 16px;
        color: #666;
    }
    
    /* 모바일 슬라이드 힌트 */
    .mobile-slide-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
        padding: 10px;
        color: #999;
        font-size: 13px;
        transition: opacity 0.3s ease;
    }
    
    .swipe-icon {
        animation: swipeHint 2s ease-in-out infinite;
    }
    
    @keyframes swipeHint {
        0%, 100% {
            transform: translateX(0);
        }
        25% {
            transform: translateX(-5px);
        }
        75% {
            transform: translateX(5px);
        }
    }
    
    /* 이미지에 슬라이드 가능 표시 */
    .main-image-container {
        position: relative;
    }
    
    .main-image-container::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        width: 8px;
        height: 8px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        box-shadow: 0 12px 0 rgba(255, 255, 255, 0.5), 0 24px 0 rgba(255, 255, 255, 0.5);
    }
}

/* 모바일 슬라이드 네비게이션 - 기본적으로 숨김 */
.mobile-slide-nav {
    display: none;
}

/* 모바일 슬라이드 힌트 - 기본적으로 숨김 */
.mobile-slide-hint {
    display: none;
}

.sub-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.sub-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 20, 20, 0.8) 100%);
    z-index: 1;
}

.sub-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.sub-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 16px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb .current {
    color: white;
    font-weight: 500;
}

/* 시설안내 섹션 */
.facilities-section {
    padding: 100px 0;
    background-color: #ffffff;
}

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

.section-subtitle {
    font-size: 14px;
    color: #2c5aa0;
    letter-spacing: 2px;
    font-weight: 500;
    margin-bottom: 15px;
}

.section-title {
    font-size: 40px;
    font-weight: 300;
    color: #1a1a1a;
    line-height: 1.4;
}

.section-title .highlight {
    color: #2c5aa0;
    font-weight: 500;
}

/* 갤러리 컨테이너 */
.gallery-container {
    margin-bottom: 100px;
}

/* 메인 이미지 영역 */
.main-image-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.main-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease;
}

.main-image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 40px;
}

.main-image-info h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.main-image-info p {
    font-size: 18px;
    opacity: 0.9;
}

/* 썸네일 컨테이너 */
.thumbnail-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.thumbnail-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 15px;
}

.thumbnail-slider {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
    padding: 10px 0;
}

/* 썸네일 아이템 */
.thumbnail-item {
    flex: 0 0 200px;
    height: 150px;
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thumbnail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.thumbnail-item.active {
    box-shadow: 0 5px 20px rgba(44, 90, 160, 0.3);
    outline: 3px solid #2c5aa0;
}

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

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

.thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 15px;
    font-size: 14px;
    font-weight: 500;
}

/* 슬라이더 버튼 */
.slider-btn {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333;
    font-size: 18px;
}

.slider-btn:hover {
    background: #2c5aa0;
    color: white;
    transform: scale(1.1);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 시설 특징 */
.facility-features {
    margin-top: 80px;
}

.features-title {
    text-align: center;
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 60px;
    color: #1a1a1a;
}

.features-title .highlight {
    color: #2c5aa0;
    font-weight: 500;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: #e8f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-icon i {
    font-size: 36px;
    color: #2c5aa0;
}

.feature-item:hover .feature-icon {
    background: #2c5aa0;
}

.feature-item:hover .feature-icon i {
    color: white;
}

.feature-item h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .sub-header {
        height: 250px;
    }
    
    .sub-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .main-image {
        height: 400px;
    }
    
    .main-image-info h3 {
        font-size: 24px;
    }
    
    .main-image-info p {
        font-size: 16px;
    }
    
    .thumbnail-item {
        flex: 0 0 150px;
        height: 100px;
    }
    
    .thumbnail-overlay {
        font-size: 12px;
        padding: 10px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-title {
        font-size: 28px;
    }
}

/* 애니메이션 */
.gallery-container,
.feature-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-container.animate-in,
.feature-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-item:nth-child(1).animate-in { transition-delay: 0.1s; }
.feature-item:nth-child(2).animate-in { transition-delay: 0.2s; }
.feature-item:nth-child(3).animate-in { transition-delay: 0.3s; }
.feature-item:nth-child(4).animate-in { transition-delay: 0.4s; }