/* 1. 레이아웃 안정화 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }

/* 2. 네비게이션 바 */
.navbar {
    background: #fff;
    width: 100%;
    height: 80px;
    border-bottom: 1px solid #eee;
    position: sticky; /* fixed 대신 sticky 사용 시 레이아웃 꼬임 방지 */
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    /* height: 100%; */
    margin: 0 auto;
    /* display: flex; */
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    
    display: flex;
}

/* 3. 메뉴 리스트 */
.nav-menu ul { display: flex; list-style: none; }
.nav-menu ul li { position: relative;}
.nav-menu ul li a { 
    display: block; 
    padding: 0 20px; 
    line-height: 80px; /* 세로 중앙 정렬 */
    text-decoration: none; 
    color: #333; 
}

/* 4. 드롭다운 (숨김 처리 완료) */
.submenu {
    position: absolute;
    top: 80px; 
    left: 0;
    background: #fff;
    width: 230px;
    display: none; /* 초기 상태 숨김 */
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.submenu li a {
    line-height: 45px;
    padding: 0 15px;
    border-bottom: 1px solid #f9f9f9;
}

/* .dropdown:hover .submenu {
    display: block; /* 마우스 오버 시에만 활성화 */
} */

/* Footer 전체 스타일 */
.footer {
    background-color: #eee7e7; /* 연한 회색 배경으로 header와 구분 */
    padding: 20px 0;           /* 상하 여백으로 여유 공간 확보 */
    border-top: 1px solid #f7eded;
    width: 100%;               /* 너비 고정 */
    clear: both;               /* 상단 요소들의 float 영향 제거 */
}

/* 가운데 정렬 핵심 로직 */
.footer-content {
    width: 100%;
    text-align: center;        /* 텍스트 가운데 정렬 */
}

.footer-content p {
    margin: 8px 0;             /* 각 줄 사이의 간격 */
    color: #777;               /* 부드러운 회색 글자색 */
    font-size: 14px;
    line-height: 1.5;
}

.footer-content strong {
    color: #333;               /* 강조 텍스트는 조금 더 진하게 */
}


/* 1. Hero Section (좌우 꽉 찬 이미지) */
.hero-section {
    width: 100%;
    height: 500px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/static/img/environment2.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 100px;
}
.hero-content h2 { font-size: 40px; line-height: 1.4; }
.hero-content h2 strong { color: #4dabf7; }


.lang-selector { font-size: 15px; white-space: nowrap;}
    .lang-selector a { text-decoration: none; color: #666; padding: 0 5px; }
    .lang-selector a.active { color: #000; font-weight: bold; }
    .lang-selector span { color: #ccc; }


    html, body { overflow-x: hidden !important; width: 100% !important; margin: 0; padding: 0; }
    
    /* 메뉴 초기화 */
    .nav-menu .submenu { display: none; }
    .nav-menu .dropdown:hover .submenu { display: block; }

    /* 네비게이션 기본 구조 */
    .navbar { width: 100% !important; background: white; border-bottom: 1px solid #ccc; }
.lang-selector div {
    display: flex !important;
    flex-direction: row !important; /* 가로 방향 정렬 */
    align-items: center;
    white-space: nowrap !important; /* 텍스트 줄바꿈 방지 */
}


/* 카드 기본 스타일 (배경과 대비 강조) */
/* .product-card {
    background: #ffffff;
    border-radius: 5px;
    padding: 45px 30px;
    text-align: center;
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
} */

/* .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
} */

/* --- 모바일 반응형 추가 --- */

/* 1. 햄버거 버튼 스타일 (기본 숨김) */
/* .menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
} */

/* .menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: 0.4s;
} */

@media screen and (max-width: 768px) {
    /* 1. 햄버거 버튼 컨테이너 */
    .menu-toggle {
        display: flex !important; /* 숨겨져 있었다면 강제로 노출 */
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px; /* 전체 높이가 있어야 bar들이 간격을 두고 보입니다 */
        cursor: pointer;
        z-index: 1001;
        background: transparent; /* 배경은 투명하게 */
        border: none;
        padding: 0;
    }

    /* 2. 실제 가로 줄(bar) */
    .menu-toggle .bar {
        display: block;
        width: 100%;
        height: 3px !important; /* 두께를 3px로 명시 */
        background-color: #333 !important; /* 검정색에 가까운 진한 회색 */
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* 3. 네비게이션 메뉴 위치 조정 */
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px; /* 헤더 높이에 맞춤 */
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: block !important;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 10px 0;
    }

    /* 3. 메인 메뉴 항목 스타일 */
    .nav-menu ul li a {
        line-height: 50px;
        padding: 0 20px;
        font-weight: 600;
        background: #f8f9fa; /* 메인 메뉴 배경 구분 */
        border-bottom: 1px solid #eee;
    }

    /* 4. 핵심: 서브메뉴 강제 펼침 */
    .submenu {
        display: block !important; /* 초기 상태부터 무조건 보임 */
        position: static !important; /* 공중에 떠 있지 않고 아래로 나열 */
        width: 100% !important;
        background: #fcfcfc !important; /* 약간의 배경색 차이로 구분 */
        box-shadow: none !important;
        border: none !important;
        padding-left: 20px !important; /* 들여쓰기 효과 */
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* 서브메뉴 항목 스타일 */
    .submenu li a {
        line-height: 40px !important;
        font-size: 14px;
        color: #666 !important;
        border-bottom: none !important;
    }
}