/* =========================
   기본 스타일
========================= */
body {
  margin: 0;
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  background-color: #fff;
  color: #222;
  font-size: 17px;
}

/* =========================
   네비게이션 바
========================= */
.navbar {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  font-weight: 600;
  font-size: 1rem;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  height: 60px;
  justify-content: space-between;
}

/* 로고 */
.navbar-logo {
  font-size: 1.25rem;
  color: #0072ce;
  text-decoration: none;
  font-weight: 700;
  user-select: none;
}

/* 메뉴 토글 */
.menu-toggle {
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  color: #0072ce;
  user-select: none;
}

/* =========================
   드롭다운 메뉴
========================= */
.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.dropdown-menu > li {
  position: relative;
  margin-left: 2rem;
}

.dropdown-menu > li:first-child {
  margin-left: 0;
}

.dropdown-menu > li > a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  padding: 1rem 0;
  display: inline-block;
  transition: color 0.3s;
  user-select: none;
}

.dropdown-menu > li:hover > a,
.dropdown-menu > li:focus-within > a {
  color: #0072ce;
}

/* 서브 메뉴 */
.dropdown-menu > li > ul {
  position: absolute;
  top: 60px;
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0); /* 끊김 최소화 */
  transition: opacity 0.3s ease;
  pointer-events: auto; /* 바로 클릭 가능 */
  z-index: 9999;
  border-radius: 4px;
}

.dropdown-menu > li:hover > ul {
  opacity: 1;
  visibility: visible;
}

/* 2단계 서브 메뉴 */
.dropdown-menu ul ul {
  top: 0;
  left: 100%;
  margin-left: 1px;
  border-radius: 0 4px 4px 0;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.dropdown-menu ul li a {
  display: block;
  padding: 0.5rem 1.2rem;
  color: #222;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s;
  user-select: none;
}

.dropdown-menu ul li a:hover,
.dropdown-menu ul li a:focus {
  background-color: #e5f0ff;
  color: #0072ce;
}

/* =========================
   반응형 메뉴
========================= */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  .dropdown-menu {
    flex-direction: column;
    background: #fff;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .dropdown-menu.active {
    max-height: 1000px;
  }

  .dropdown-menu > li {
    margin-left: 0;
    border-top: 1px solid #ddd;
  }

  .dropdown-menu > li > ul {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    border: none;
    box-shadow: none;
    padding-left: 1rem;
  }

  .dropdown-menu > li > ul:not(.open) {
    display: none;
  }

  .dropdown-menu > li > ul.open {
    display: block;
  }

  .dropdown-menu ul ul {
    margin-left: 1rem;
  }
}

/* =========================
   슬라이드 영역
========================= */
.swiper-container {
  max-width: 960px;
  height: 480px;
  margin: 5rem auto 4rem auto;
  position: relative;
}

.swiper-wrapper {
  padding-bottom: 40px;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 슬라이드 버튼 */
.swiper-button-next,
.swiper-button-prev {
  color: #0072ce;
  width: 40px;
  height: 40px;
  top: auto;
  bottom: 10px;
  border-radius: 50%;
  background-color: #e5f0ff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: #cce0ff;
}

.swiper-button-prev {
  left: calc(50% - 80px);
}

.swiper-button-next {
  right: calc(50% - 80px);
}

/* 슬라이드 캡션 제거 */
.swiper-slide-caption {
  display: none;
}

/* =========================
   본문 영역 (글씨 짤림 방지)
========================= */
main {
  padding-top: 120px; /* 메뉴바 높이 + 여유 */
}

/* =========================
   푸터
========================= */
footer {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: #666;
}

/* =========================
   제목 정렬
========================= */
h1, h2, h3 {
  text-align: center;
}
