/* 🌐 기본 여백 및 폰트 설정 */
body {
  margin: 0;
  font-family: 'Pretendard', sans-serif;
  color: #333;
  line-height: 1.6;
  max-width: 100vw;
  overflow-x: hidden;
  background: #fafafa;
}

/* 🧭 헤더 (로고 + 메뉴바) 설정 */
header {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 로고와 메뉴를 왼쪽 정렬 */
  gap: 160px; /* 로고와 메뉴 사이 간격 */
  padding: 10px 40px; /* 좌우 여백 설정 */
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 50px;
  min-height: unset;
}

/* ✅ 로고에만 왼쪽 여백 적용 */
header .logo {
  margin-left: 20px;
}

/* 🔰 로고 이미지 설정 */
header .logo img {
  height: 36px;
  display: block;
  max-width: 100%;
}

/* 📑 기본 메뉴 리스트(nav-links) */
.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2vw;
  margin: 0;
  padding: 0;
}

/* 📌 메뉴 항목(li) */
.nav-links li {
  position: relative;
}

/* 🔗 메뉴 항목 링크 스타일 */
.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  padding: 4px 8px;
  display: block;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ⬇️ 드롭다운 (1단 하위 메뉴) */
.nav-links li ul {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 8px 0;
  display: none;
  min-width: 160px; /* ✅ 서브메뉴 너비 축소 */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1001;
}

/* 마우스 올렸을 때 드롭다운 표시 */
.nav-links li:hover > ul {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ⬇️ 드롭다운 항목 */
.nav-links li ul li {
  position: relative;
}

/* 🔗 드롭다운 항목 링크 */
.nav-links li ul li a {
  padding: 10px 20px;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

/* 마우스 hover 시 효과 */
.nav-links li ul li a:hover {
  background: #859FB1;
  color: #fff;
}

/* ⬅️ 2단 드롭다운 메뉴 */
.nav-links li ul li ul {
  top: 0;
  left: 100%;
  position: absolute;
  display: none;
  background: #fff;
  padding: 8px 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  min-width: 160px; /* ✅ 2단 드롭다운 너비 축소 */
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1002;
}

/* 2단 드롭다운 hover 처리 */
.nav-links li ul li:hover > ul {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

/* 2단 드롭다운 링크 스타일 */
.nav-links li ul li ul li a {
  padding-left: 36px;
  font-size: 0.9rem;
}

/* 🦶 푸터 영역 */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background-color: #2f2f2f;
  flex-wrap: wrap;
}

/* 푸터 로고 */
footer img {
  width: 160px;
  height: auto;
  margin-left:20px;
  
}

/* 푸터 정보 텍스트 */
footer .info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #797979;
}

/* 푸터 정보 문장 */
footer .info p {
  line-height: 1.3;
  margin: 0;
}

/* 📱 반응형 스타일 (모바일 대응) */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    align-items: center;
    padding: 10px 20px;
  }

  .nav-links {
    display: none !important;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer .info {
    margin-top: 10px;
  }
}

/* 📱 더 작은 모바일 화면 대응 */
@media (max-width: 480px) {
  footer img {
    width: 120px;
  }

  .nav-links li a {
    font-size: 0.95rem;
    max-width: 100px;
  }
}