/* ===== 서브페이지 헤더 스타일 ===== */

/* 서브페이지 Hero Section */
.subpage .hero-section {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    background-color: #F8F8F8;
    overflow: visible;
    height: auto;
}

/* 서브페이지 Hero Header */
.subpage .hero-header {
    position: relative;
    width: 100%;
    height: 100px; /* 메인 페이지 400px에서 100px로 줄임 */
    min-height: 100px;
    max-height: 100px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 1;
    overflow: visible !important;
}

/* 서브페이지 Hero Content */
.subpage .hero-content {
    height: 100%;
    padding: 0 30px; /* 좌우 여백 30px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    background-color: transparent;
}

/* 서브페이지 Hero Text */
.subpage .hero-text {
    flex: 1;
    max-width: 100%;
    padding-right: 0;
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 서브페이지 Hero 이미지 */
.subpage .hero-image {
    display: none; /* 서브페이지에서는 히어로 이미지 숨김 */
}

/* 서브페이지 Hero 제목 */
.subpage .hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin: 0;
}

/* 서브페이지 네비게이션 */
.subpage .sticky-nav-container {
    position: fixed !important; /* 모든 상속을 무시하고 fixed로 강제 설정 */
    top: 20px !important; /* 헤더 배너 높이 */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 1920px !important;
    max-width: 1920px !important;
    background-color: #ffffff !important; /* 배경색을 투명에서 흰색으로 변경 */
    padding: 0 !important;
    box-shadow: none !important; /* 그림자 제거 */
    transition: all 0.3s ease !important;
    will-change: transform !important; /* 성능 최적화 */
    transform: translateX(-50%) translateZ(0) !important; /* 하드웨어 가속 + 중앙 정렬 */
    display: flex !important;
    justify-content: center !important;
}

.subpage .sticky-nav-container.scrolled {
    background-color: #ffffff; /* 스크롤 시에도 흰색 배경 유지 */
    box-shadow: none !important; /* 그림자 제거 */
}

.subpage .main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 100px; /* 헤더 높이 100px로 설정 */
    position: relative;
    z-index: 1000;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    margin: 0 auto;
    width: 1920px !important;
    max-width: 1920px !important;
    transition: all 0.3s ease;
    box-sizing: border-box; /* 패딩을 포함한 높이 계산 */
}

/* 스크롤 시 메인 네비게이션 스타일 */
.subpage .main-nav.scrolled {
    background-color: #ffffff;
    height: 80px; /* 스크롤 시 높이 약간 줄임 */
    box-shadow: none !important; /* 그림자 제거 */
}

/* 서브페이지 히어로 배경 */
.subpage-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    z-index: 0;
}

/* 서브페이지 콘텐츠 영역 */
.subpage-hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1920px;
    margin: 0 auto;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

/* 서브페이지 히어로 섹션 */
.subpage-hero {
    margin-top: 0; /* 여백 제거 */
    padding-top: 120px; /* 헤더 높이(100px) + 헤더 배너 높이(20px) */
    background-color: #f8f9fa;
    padding-bottom: 40px;
    position: relative;
    z-index: 1; /* 낮은 z-index 값 유지 */
    border-top: 0; /* 구분선 제거 */
    overflow: hidden; /* 애니메이션이 섹션 밖으로 나가지 않도록 */
}

.subpage-hero-content {
    flex: 1;
    max-width: 60%;
}

.subpage-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #00BF73;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease-out; /* 페이드인 업 모션 추가 */
}

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

.subpage-hero-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.3s; /* 페이드인 업 모션 추가, 0.3초 딜레이 */
    animation-fill-mode: both; /* 애니메이션 시작 전 상태 유지 */
}

.subpage-hero-image {
    flex: 0 0 35%;
    text-align: right;
}

.subpage-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    /* 그림자 제거 */
    animation: bounce 2s ease infinite; /* 통통 튀는 모션 추가 */
}

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

/* 반응형 스타일 */
@media (max-width: 768px) {
    .subpage-hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .subpage-hero-content {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .subpage-hero-image {
        flex: 0 0 100%;
        text-align: center;
    }
    
    .subpage-hero-title {
        font-size: 1.8rem;
    }
}

/* 서브페이지 헤더 컨테이너 */
.subpage-header-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100% !important;
    max-width: 1400px !important;
    z-index: 10000;
    background: white;
}

/* 서브페이지 헤더 배너 */
.subpage-header-banner {
    background-color: #fff;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    width: 100% !important;
    max-width: 100vw !important;
}

.subpage-header-banner .container {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto;
    padding: 0 20px;
}

/* 서브페이지 네비게이션 */
.subpage-nav-container {
    background-color: white;
    width: 100% !important;
    max-width: 100vw !important;
}

.subpage-main-nav {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
