/* 1. 전체 기본 세팅 */
body { 
    background-color: #111; 
    margin: 0; 
    padding: 0; 
    font-family: 'Malgun Gothic', sans-serif; 
    -webkit-text-size-adjust: none; 
}

/* 2. 상단 헤더 및 로고 영역 (크기 최적화) */
.site-header { 
    width: 100%; 
    padding: 20px 0 15px; /* 모바일 조화를 위해 상하 여백 조정 */
    display: flex; 
    justify-content: center; 
    align-items: center; 
    background-color: #1a1a1a;
    border-bottom: 1px solid #222;
}
.logo-box { 
    max-width: 1000px; 
    width: 100%; 
    text-align: center; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 0 15px;
    box-sizing: border-box;
}
.logo-image { 
    max-width: 160px; /* 로고가 지나치게 커지지 않도록 한계선 설정 */
    width: 100%;
    height: auto; 
    object-fit: contain; 
}
.logo-text { 
    font-family: sans-serif; 
    font-size: 32px; 
    font-weight: 900; 
    color: #ffca28; 
    margin: 0; 
    letter-spacing: 2px; 
}

/* 🛠️ 3. 모바일 메뉴 깨짐을 완전히 차단하는 메뉴바 디자인 추가 */
.nav-bar { 
    background-color: #151515; 
    border-bottom: 1px solid #333; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    width: 100%;
    padding: 0;
}
.nav-container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 0 15px; 
    box-sizing: border-box;
}
.nav-menu { 
    list-style: none; 
    display: flex; 
    justify-content: flex-start; /* 왼쪽부터 메뉴 차례대로 나열 */
    gap: 20px;                  /* 메뉴 글자 사이의 간격 */
    padding: 14px 0; 
    margin: 0; 
    overflow-x: auto;           /* 폰 화면이 아주 작아도 가로 스크롤로 방어 */
    white-space: nowrap;        /* ★ 메뉴 글자가 밑으로 찢어져서 떨어지는 현상 원천 차단 */
    -webkit-overflow-scrolling: touch;
}
.nav-menu::-webkit-scrollbar { display: none; } /* 스크롤바 숨김 */

.nav-menu li { display: inline-block; }
.nav-menu a { 
    color: #ccc; 
    text-decoration: none; 
    font-size: 15px; 
    font-weight: bold; 
    transition: 0.2s; 
    padding: 5px 2px;
}
.nav-menu a:hover, .nav-menu a.active { 
    color: #ff4d4d; 
    border-bottom: 2px solid #ff4d4d; /* 현재 위치 밑줄 하이라이트 */
}

/* 4. 본문 카드 컨테이너 영역 */
.card-container { 
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    gap: 40px; 
    max-width: 1000px; 
    margin: 40px auto; 
    padding: 30px; 
    font-family: sans-serif; 
    background-color: #f5f5f5; 
    border-radius: 16px; 
    box-shadow: 0 4px 15px rgba(0,0,0,.5); 
    box-sizing: border-box; 
}
.card-content-box, .card-image-box { flex: 1; width: 100%; }
.card-image { width: 100%; height: auto; object-fit: cover; border-radius: 12px; }
.card-description { font-size: 16px; line-height: 1.6; color: #222; margin-bottom: 25px; }
.card-list { list-style: none; padding: 0; margin: 0; }
.card-list li { font-size: 16px; font-weight: 700; color: #111; margin-bottom: 12px; position: relative; padding-left: 28px; }
.card-list li::before { content: "✓"; position: absolute; left: 0; top: -2px; color: #d32f2f; font-size: 18px; font-weight: 700; }

/* 5. 스마트폰 (모바일) 환경 반응형 대응 */
@media (max-width: 768px) {
    .site-header { padding: 15px 0 10px; }
    .logo-image { max-width: 130px; } /* 모바일에서 로고 크기 최적화 */
    
    .card-container { 
        flex-direction: column; 
        gap: 24px; 
        margin: 20px auto; 
        padding: 20px; 
        width: 92%; 
    }
    .logo-link { 
        text-decoration: none; 
        color: #333; 
        font-size: 24px; 
        font-weight: 700; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
    }
    .logo-img { height: 40px; width: auto; display: block; }
    .logo-link:hover { opacity: .8; }
}