/* reset 최소 */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* navbar */
.navbar {
  width: 100%;
  height: 80px;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.nav-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 로고 이미지 */
.nav-left img {
  height: 75px;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-right a {
  text-decoration: none;
  color: #333;
  font-size: 19px;

  line-height: 1;  
  display: flex;   
  align-items: center;  
}

.nav-right a:hover {
  color: #000;
}

/* eng 버튼 */
.nav-right .lang-btn {
  margin-left: 40px; /* 메뉴바와 eng 버튼 사이 간격 */
  padding: 6px 10px; /* 동그라미 크기 */
  border: 1px solid #333;
  border-radius: 15px; /* 동그라미 테두리 */
  font-size: 13px; /* eng 텍스트 크기 */
  text-decoration: none;
  color: #333;
  background-color #000;

  transition: 
    border-radius 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    background-color 0.4s ease;
}

/* hover 시 모양만 변경 */
.nav-right .lang-btn:hover {
  border-radius: 4px;
  color: #fff;                /* 텍스트 */
  border-color: #000;         /* 테두리 */
  background-color: #000;
}


/* 메뉴 드롭다운 */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;   /* 드롭다운 기준 */
  margin-left: 40px; /* 메뉴 간격 */
}

.nav-item > a {
  text-decoration: none;
  color: #333;
  font-size: 19px; /* 메뉴 글자 크기 */
  line-height: 1;
  display: flex;
  align-items: center;
}

.dropdown {
  position: absolute;
  top: 100%;
  margin-top: 12px;
  left: 0;

  min-width: 160px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);

  list-style: none;
  padding: 10px 0;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);   /* 살짝 위에서 시작 */

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0s linear 1.2s;    /* 사라질 때 딜레이 */

  z-index: 1000;
}

.nav-item:hover .dropdown, 
.dropdown:hover {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
  transition-delay: 0s, 0s, 0s;  /* 두번째 숫자 1로 하면 */
}

.dropdown li a {
  display: block;
  padding: 8px 20px;
  font-size: 16px;  /* 메뉴 드롭다운 글자 크기 */
  color: #333;
  text-decoration: none;
}

.dropdown li a:hover {
  background: #f5f5f5;
}


@media (max-width: 768px) {

  /* navbar 기본 */
  .navbar {
    height: auto;
  }

  .nav-container {
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 16px;
  }

  /* 🔹 로고 중앙 */
  .nav-left {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  /* 로고 */
  .nav-left img {
    height: 48px;
    display: block;
  }

  /* 우측 영역 정렬 */
  .nav-right {
    width: 100%;
    margin-top: 8px;
    justify-content: space-between;
  }

  /* 메뉴 유지 + 가로 스크롤 */
  .nav-menu {
    display: flex;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
  }

  .nav-menu::-webkit-scrollbar {
    display: none; /* 스크롤바 숨김 */
  }

  .nav-item {
    margin-left: 0;
    margin-right: 20px;
    flex-shrink: 0;
  }

  .nav-item > a {
    font-size: 15px;
  }

  /* 모바일에서는 hover 드롭다운 비활성화 */
  .dropdown {
    display: none;
  }

  /* ENG 버튼 */
  .nav-right .lang-btn {
    margin-left: 0;
    padding: 4px 8px;
    font-size: 12px;
  }

}



