/* ==================================== */
/* 0. 기본 레이아웃 및 전체 배경 설정 */
/* ==================================== */
html, body { 
    height: 100%; 
    margin: 0;
    padding: 0;
}

.sub-page-body {
    background-image: url('../images/sub1_bg.png') !important; 
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    background-color: transparent !important; 
    
    font-family: 'S-CoreDream', 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.8;
}

#wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* ==================================== */
/* 1. 네비게이션 (Sub Header) 스타일 */
/* ==================================== */
#sub-header {
    width: 100%;
    background-color: transparent;
    position: relative;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    position: relative; 
}

.logo img {
    height: auto;
    display: block;
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 60px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #292929; 
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
    padding: 10px 0;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -25px; 
    width: 0; 
    height: 3px; 
    background-color: #2c5ddb; 
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: #2c5ddb;
}

.main-nav a:hover::after {
    width: 100%; 
}

.jump-menu-container {
    margin-left: 20px;
}

.jump-menu {
    padding: 8px 30px 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    font-family: 'S-CoreDream', sans-serif;
    cursor: pointer;
}

.nav-divider {
    width: 1200px; 
    max-width: 100%; 
    height: 1px;
    background-color: rgba(143, 152, 175, 0.4); 
    margin: 0 auto;
}

/* ==================================== */
/* 2. 메인 콘텐츠 스타일 */
/* ==================================== */
#sub-main-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    padding: 80px 20px;
}

.sub-content-area {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.campaign-message {
    font-size: 17px;
    line-height: 1.8;
    letter-spacing: -1px;
    margin-top: -30px;
    margin-bottom: 50px;
}

.campaign-message .highlight {
    margin-top: 20px;
    font-weight: 700;
    font-size: 18px;
    color: #333333;
}

.campaign-image-container img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ==================================== */
/* 3. 푸터 스타일 */
/* ==================================== */
#footer {
    background-color: #dcdcdc; 
    padding: 40px 0;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 10px;
}

.footer-text p {
    font-size: 14px;
    color: #555;
    margin: 5px 0;
}

.footer-right {
    display: flex;
    gap: 15px;
}

/* ==================================== */
/* 4. 모바일 반응형 (768px 이하) */
/* ==================================== */
@media (max-width: 768px) {
    /* 헤더 영역 */
    .header-container {
        flex-direction: column;
        padding: 20px 10px;
        gap: 15px;
    }

    .jump-menu-container {
        display: none !important; 
    }

    .logo {
        display: block;
        margin: 0 auto;
    }

    .logo img {
        margin: 0 auto;
    }
    
    .main-nav {
        width: 100%;
    }

    .main-nav ul {
        gap: 30px;
        justify-content: center;
    }

    .main-nav a {
        font-size: 18px;
        padding: 5px 0;
    }
    
    .main-nav a::after {
        bottom: -15px;
    }
    
    .nav-divider {
        width: 100%;
    }

    /* [수정] 푸터 영역 모바일 왼쪽 정렬 */
    .footer-content {
        flex-direction: column;
        align-items: flex-start; /* 왼쪽 정렬 */
        text-align: left; /* 텍스트 왼쪽 정렬 */
        gap: 30px; /* 요소 간 간격 확대 */
    }

    .footer-left {
        width: 100%;
    }

    .footer-logo {
        margin-left: 0; /* 로고 왼쪽 정렬 유지 */
    }

    .footer-right {
        justify-content: flex-start; /* SNS 아이콘 왼쪽 정렬 */
        width: 100%;
    }
}