/* ===== 완전히 수정된 mobile.css =====
   모바일 768px 이하 전용 반응형 CSS
   모든 페이지 동일하게 적용 */

/* ========== 데스크탑에서도 기본 네비게이션 통일 ========== */
nav {
    background: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.logo {
    font-size: 2.0rem;
    font-weight: bold;
    color: #6ab5b4;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4rem;
    margin-left: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.3rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: #6ab5b4;
}

@media (max-width: 768px) {
    
    /* ========== 네비게이션 완전 통일 ========== */
    
    /* 모든 페이지의 네비게이션 동일 설정 */
    .nav-links {
        margin-left: 0 !important;
        margin-top: 0 !important;
        gap: 0.8rem !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        justify-content: flex-start !important; /* 왼쪽 정렬로 통일 */
    }
    
    .nav-links::-webkit-scrollbar {
        display: none !important;
    }
    
    /* 네비게이션 컨테이너 간격 조정 */
    .nav-container {
        padding: 0 1rem !important;
        gap: 1rem !important;
        flex-direction: row !important; /* 모든 페이지에서 가로 배치 */
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    /* 로고 크기 조정 */
    .logo {
        font-size: 1.3rem !important;
        flex-shrink: 0 !important;
    }
    
    /* 메뉴 링크 크기 조정 */
    .nav-links a {
        font-size: 0.85rem !important;
        padding: 0.3rem 0.5rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    /* ========== 기본 레이아웃 조정 ========== */
    html {
        font-size: 14px;
    }
    
    body {
        padding-top: 70px !important;
    }
    
    /* 히어로 섹션 */
    .hero {
        padding: 3rem 1rem 2rem !important;
        margin-top: 0 !important;
    }
    
    .hero h1 {
        font-size: 1.6rem !important;
        line-height: 1.3;
        word-break: keep-all;
    }
    
    .hero p {
        font-size: 1rem !important;
        line-height: 1.4;
        word-break: keep-all;
    }
    
    /* 페이지 헤더 */
    .page-header {
        height: 250px !important;
        margin-top: 0 !important;
    }
    
    .page-header h1 {
        font-size: 1.8rem !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        word-break: keep-all;
    }
    
    .page-header .subtitle {
        font-size: 0.9rem !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
        line-height: 1.4;
        word-break: keep-all;
    }
    
    .page-header-text h1 {
        font-size: 1.8rem !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        word-break: keep-all;
    }
    
    .page-header-text .subtitle {
        font-size: 0.9rem !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
        line-height: 1.4;
        word-break: keep-all;
    }
    
    /* ========== 이미지 반응형 ========== */
    img, video {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .action-card img,
    .news-card img,
    .product-card img {
        width: 100% !important;
        height: auto !important;
        max-height: 150px;
        object-fit: cover;
    }
    
    /* ========== 그리드 레이아웃 ========== */
    .card-grid,
    .product-grid,
    .news-grid,
    .actions {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem;
    }
    
    .grid-two,
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    /* ========== 섹션 여백 ========== */
    section,
    .content-section {
        padding: 2rem 1rem !important;
    }
    
    .section-title {
        font-size: 1.4rem !important;
        text-align: center;
        word-break: keep-all;
    }
    
    /* ========== 테이블 반응형 ========== */
    table {
        font-size: 0.8rem;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    /* ========== 버튼 ========== */
    .btn,
    .alternative-btn,
    .read-more {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        word-break: keep-all;
    }
    
    /* ========== 푸터 ========== */
    .site-footer {
        padding: 2rem 1rem !important;
    }
    
    .footer-info p {
        font-size: 0.8rem;
        line-height: 1.4;
        word-break: keep-all;
    }
    
    .footer-copy {
        font-size: 0.75rem;
    }
    
    /* ========== 터치 최적화 ========== */
    a, button, [onclick] {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ========== 더 작은 화면 (480px 이하) ========== */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.5rem !important;
    }
    
    .logo {
        font-size: 1.1rem !important;
    }
    
    .nav-links a {
        font-size: 0.8rem !important;
        padding: 0.2rem 0.3rem !important;
    }
    
    .hero h1 {
        font-size: 1.4rem !important;
    }
    
    .page-header {
        height: 200px !important;
    }
    
    .page-header h1,
    .page-header-text h1 {
        font-size: 1.5rem !important;
    }
    
    .page-header .subtitle,
    .page-header-text .subtitle {
        font-size: 0.8rem !important;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr !important;
    }
}