/* Header Section */

/* 전체 메뉴 컨테이너 */
.all-menu-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.all-menu-grid {
  grid-template-columns: 1fr 1fr;
}
.all-menu-toggle {
  background: none;
  border: none;
  color: #666;
  font-size: 0.9rem;
  padding: 1.5rem 1.2rem;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
  white-space: nowrap;
}

.all-menu-toggle:hover {
  background: #f8f9fa;
}

.all-menu-container.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.all-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 20px;
}

.all-menu-column h4 {
  color: #1a1a1a;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.all-menu-column ul {
  list-style: none;
}

.all-menu-column a {
  display: block;
  padding: 0.5rem 0;
  color: #666;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.all-menu-column a:hover {
  color: #0066cc;
}

/* Logo Section */
.logo-section {
  background: #fff;
  padding: 50px 0;
  text-align: center;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 1001;
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-logo-img {
  max-height: 50px;
  width: auto;
  display: block;
}

/* Header Styles */
.site-header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1001;
  min-height: 60px;
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
  min-height: 60px;
  background: #fff;
}

.breadcrumb-nav {
  background: #f5f5f5;
  padding: 8px 0;
  font-size: 0.85rem;
  color: #999;
  border-top: 1px solid #eee;
  position: sticky;
  top: 60px;
  z-index: 1000;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-direction: row;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Main Navigation */
.main-navigation {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}

.main-navigation > ul {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.main-navigation > ul > li {
  position: relative;
}

.main-navigation a {
  display: block;
  color: #333;
  font-weight: 500;
  padding: 1.5rem 1.2rem;
  position: relative;
  transition: color 0.3s;
  white-space: nowrap;
}

.main-navigation > ul > li > a:hover {
  color: #0066cc;
}

.main-navigation a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #0066cc;
  transition: width 0.3s ease;
}

.main-navigation a:hover::after {
  width: 100%;
}

/* Submenu Styles */
.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  list-style: none;
  margin: 0;
  padding: 0;
}

.has-submenu:hover > a::after {
  width: 0;
}

.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%);
}

.submenu li {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.submenu a {
  display: block;
  padding: 8px 1.5rem;
  font-weight: 400;
  font-size: 0.9rem;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  border-bottom: 1px solid #eee;
  line-height: 1.4;
  color: #333;
}

.submenu li:last-child a {
  border-bottom: none;
}

.submenu a:hover {
  background: #f8f9fa;
  color: #0066cc;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 20px;
  z-index: 1002;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
  .all-menu-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .all-menu-column {
    margin-bottom: 1rem;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    transform: none;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  .main-navigation > ul > li {
    border-bottom: 1px solid #eee;
  }

  .main-navigation a {
    display: block;
    padding: 1rem 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }
  .submenu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
    margin: 0.5rem 0;
  }

  .submenu a {
    padding-left: 2rem;
  }
}
