/* Basic Styles */
* {
    /* margin: 0;
    padding: 0; */
    box-sizing: border-box;

    word-break: keep-all;
    overflow-wrap: break-word;
    font-family: 'Malgun Gothic', Arial, sans-serif;
}

a:hover {
    text-decoration: underline;
}

body {
    line-height: 1.6;
}

/* Navigation Bar */
header {
    background-color: #5b4f47;
    /* padding: 15px 0; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999; /*다른 요소 위에 표시되도록 z-index 설정 */
    height: 60px; /* 헤더의 실제 높이에 맞게 조정하세요 */
    display: flex;           /* 추가 */
    flex-direction: column;  /* 추가 */    
    /* align-items: center; */ 
    justify-content: center;    
}

.nav-list {
    list-style-type: none;
    display: flex;
    justify-content: center;
    position: relative;
}

.nav-list li {
    margin: 0 5px;
    position: relative;
    padding: 5px;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    padding: 5px;
}

.nav-list a:hover {
    color: #ff8c00;
}

/* Dropdown Menu */
/* .dropdown-content, .submenu-content, .third-level-content {
    display: none; 
    position: absolute;
    background-color: #444;
    top: 100%;
    left: 0;
    list-style-type: none;
    padding: 0;
    margin: 0;
    min-width: 160px;
    z-index: 1000;
} */
.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: #444;
    top: 100%;
    left: 0;
    list-style-type: none;
    padding: 0;
    margin: 0;
    min-width: 160px;
    z-index: 1000;
}
.submenu-content, .third-level-content {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: #555;
    top: 100%;
    left: 0;
    list-style-type: none;
    padding: 0;
    margin: 0;
    min-width: 160px;
    z-index: 1000;
}



.dropdown-content li {
    border-bottom: 1px solid #555;
}

.dropdown-content li a {
    color: white;
    /* padding: 10px; */
    display: block;
}

.dropdown-content li a:hover {
    /* background-color: #555; */
    color: #ff8c00;
}

/* Show dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Submenu Styles */
.submenu-content {
    left: 100%; /* Submenu appears to the right of the parent item */
    top: 0;
    display: none; /* Hidden by default */
}

.dropdown-submenu {
    position: relative;
}

/* Show submenu only when hovering over 지방흡입 */
.dropdown-submenu:hover .submenu-content {
    display: block;
}

/* Third-level menu */
.third-level-content {
    left: 100%; /* Third-level submenu appears to the right of the second-level submenu */
    top: 0;
    display: none; /* Hidden by default */
}

.dropdown-third-level {
    position: relative;
}

/* Show third-level menu only when hovering over 얼굴 */
.dropdown-third-level:hover .third-level-content {
    display: block;
}

/* Submenu Items */
.submenu-content li, .third-level-content li {
    border-bottom: 1px solid #555;
}

/* Prevent menu from disappearing */
.nav-list li {
    transition: all 0.3s ease;
}


/* Section Styles */
/* 앵커 링크를 위한 스타일 */
:target::before {
    content: "";
    display: block;
    height: 60px; /* 헤더의 높이에 맞게 조정하세요 */
    margin-top: -60px; /* 헤더의 높이와 같은 음수 값 */
    visibility: hidden;
    pointer-events: none;
  }
  

section {
    padding-top: 100px; /* 헤더 높이 + 추가 여백 */
    margin-top: -60px; /* 추가된 패딩만큼 위로 올림 */
    /* padding: 30px 30px; */
    /* text-align: left; */
    text-align: justify;
    
}

/* 첫 번째 섹션을 위한 추가 스타일 */
body > section:first-of-type {
    padding-top: 120px; /* 헤더 높이 + 추가 여백 */
}

/* section h1 {
    font-size: 32px; 
    margin-top: 32px;
}

section h2 {
    font-size: 24px; 
    margin-top: 24px;
}

section h3 {
    font-size: 19px; 
    margin-top: 19px;
}

section p {
    font-size: 16px;    
    margin-top: 10px;    
} */

section ul{
    list-style-type: disc;
    padding-left: 20px;
    /* margin-top: 10px; */
}

section ul li {
    /* font-size: 17px; */ 
    /* margin-bottom: 8px; */
    margin-top: 0px;
}

section img {
    width: 100%;
    /* max-width: 400px; */
    /* margin-bottom: 20px; */
}

.step1{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    
}

.step2
{
    /* text-align: left; */
    text-align: justify;
    max-width: 600px;
    /* padding: 30px 30px; */
    width: 100%;
    
}


/* 맵 컨테이너 스타일 수정 */
#map {
    width: 100%;
    height: 100px;
    border: 1px solid #ccc;
}

#iw_inner{
    /* margin: 0px; */
    
} 

#iw_inner h3 {    
    margin-top: 3px;
    margin-left: 3px;
    margin-bottom: 0px;       
}


#iw_inner p {    
    margin-top: 3px;
    margin-left: 3px;  
    margin-bottom: 0px;
    font-size: 0.7rem;  
}

#iw_inner img {
    width:auto;    
    margin-top: 3px;
    margin-left: 3px;  
    margin-bottom: 0px; 
    /* align-content: center; */
    /* vertical-align: top; */
}




/* Footer */
footer {
    background-color: #5b4f47;
    color: white;
    text-align: center;
    padding: 20px 0;
    /* margin-top: 40px; */
    font-size: 0.7rem; /* 14px와 동일 */
}

/* Ensuring long menu items fit in one line */
.dropdown-content li a, .submenu-content li a, .third-level-content li a {
    white-space: nowrap; /* Prevent line breaks */
    width: auto; /* Let the width adjust automatically */
    /*padding: 10px 20px; /* Adjust padding as needed */
}










/* 헤더 컨테이너를 추가해 로고와 네비게이션을 분리 */
.header-container {
    display: flex;
    justify-content: center; /* 전체 중앙 정렬 */
    align-items: center;    
    padding: 0 20px; /* 좌우 여백 추가 */
    position: relative;
    height: 100%;   
}

/* 로고 스타일 */
.logo {
    position: absolute;
    left: 00px; /* 왼쪽 여백 */
}

.logo-img {
    width: auto;
    height: 50px;
    vertical-align: middle;
}

/* 네비게이션 바 중앙 정렬 */
nav {
    display: flex;
    justify-content: center; /* 네비게이션 항목 중앙 정렬 */
    align-items: center;
}

.nav-list {
    list-style-type: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}




/* Hero Section */
#hero {
    /* background-image: url('https://via.placeholder.com/1920x600');
    background-size: cover;
    background-position: center;
    color: white;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; */
}

.hero-text h1 {
    /* font-size: 48px; */
    margin-bottom: 10px;
}

.hero-text p {
    /* font-size: 24px; */
}

.hero-img {
    width: 100%;
    /* max-width: 600px;  */
    display: block;
    /* margin: 20px auto;  */
}


.hero-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}



/* Doctor Information Section */





/* Directions Section */
#directions-info a {
    /* color: #007bff; */
    /* text-decoration: none; */
}

/* #directions-info a:hover {
    text-decoration: underline;
} */

/* Map Styling */
.map-container {
    margin-top: 20px;
    text-align: center;
}

.map-container iframe {
    width: 100%;
    max-width: 600px;
    height: 400px;
    border: 0;
}




/* Liposuction Section */



/* fat-grafting Section */






/* v-olet Section */



/* fat-dissolving*/





/* diet-prescription Section */



/* thread-lifting*/




/* botox*/



.page-img {
    width: 100%;
    max-width: 600px; /* Adjust as needed */    
    display: block;
    margin: 20px auto; /* Center the image */
}


.page-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 기존 스타일 유지 */

/* 반응형 디자인을 위한 미디어 쿼리 */
@media screen and (max-width: 1400px) {
    .header-container {
        display: flex;
        justify-content: center; /* 전체 중앙 정렬 */
        align-items: center;    
        padding: 0 20px; /* 좌우 여백 추가 */
        position: relative;
        height: 100%;
    }
    
    /* 로고 스타일 */
    .logo {
        position: absolute;
        left: 00px; /* 왼쪽 여백 */
    }
    
    .logo-img {
        width: auto;
        height: 50px;
        vertical-align: middle;
    }
    
    /* 네비게이션 바 중앙 정렬 */
    nav {
        display: flex;
        justify-content: center; /* 네비게이션 항목 중앙 정렬 */
        align-items: center;
    }

    .nav-list {
        display: none;
        flex-direction: column;        
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #5b4f47;
        z-index: 1000;
        overflow-y: auto;  /* 스크롤 추가 */
        height: 80vh;  /* 화면 높이의 80%로 설정 */
        width: 80vw;
        justify-content: flex-start; /* 항목들을 위쪽부터 정렬 */
    }

    .nav-list.active {
        display: flex; /* .active 클래스가 있을 때만 표시 */
    }

    .nav-list li {
        /* margin: 10px 0; */
        width: 100%;
        text-align: left;
        padding-left: 20px;
        padding-right: 20px;
    }

    .dropdown:hover .dropdown-content,
    .dropdown-submenu:hover .submenu-content,
    .dropdown-third-level:hover .third-level-content {
        display: none;
    }

    /* .dropdown-content, .submenu-content, .third-level-content {
        position: static;
        display: none;
        background-color: #444;
        width: 100%;
    } */

    .dropdown-content {
        position: static;
        display: none;
        background-color: #444;
        width: 100%;
    }

    .submenu-content, .third-level-content {
        position: static;
        display: none;
        background-color: #555;
        width: 100%;
    }

    .dropdown-content li, .submenu-content li, .third-level-content li {
        padding-left: 20px;
        /* padding-right: 20px; */
    }

    .dropdown > a, .dropdown-submenu > a, .dropdown-third-level > a {
        display: flex;
        /* justify-content: space-between; */
        align-items: center;
    }

    /* .dropdown > a::after, .dropdown-submenu > a::after, .dropdown-third-level > a::after { */
    /* .dropdown > a::after, .dropdown-submenu > a::after { */
    /* .withsubmenu > a::after{
        content: '\25BC';
        font-size: 0.7em;
        margin-left: 5px;
    } */
    .withsubmenu > a::after {
        content: "▼";
        font-size: 0.7em;
        margin-left: 5px;
    }

    .mobile-menu-icon {
        display: block;
        font-size: 24px;
        cursor: pointer;
        position: absolute;
        right: 20px;
        /* top: 0px;         */
        color: white; /* 햄버거 메뉴 색상을 하얀색으로 변경 */
        
    }
}

/* 기본적으로 모바일 메뉴 아이콘 숨기기 */
.mobile-menu-icon {
    display: none;
}

@media screen and (max-width: 1400px) {
    .mobile-menu-icon {
        display: block;
    }
}

/* ls-arm 이미지 2개 나란히 표시되게 */
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.image-container img {
    max-width: 45%;
    height: auto;
}
@media (max-width: 768px) {
    .image-container img {
        max-width: 100%;
    }
}

/*
.hidden-text {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
  }
*/
  .tag-text{

  }


  .image-container {
    display: flex; /* Flexbox로 자식 요소들을 가로로 정렬 */
    gap: 10px; /* 이미지 사이의 간격 */
}