.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 92px;
  z-index: 999;
  margin-top: 24px;
  transition: all 0.3s ease;
  background-color: transparent;
}

.header.scrolled {
  margin-top: 0;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled .gnb ul li a,
.header.scrolled .util ul li a,
.header.scrolled .hamburger span {
  color: #333;
}

.header.scrolled .util ul li:nth-of-type(1)::after {
  background-color: #333;
}

.header.scrolled .hamburger:hover span,
.header.scrolled .gnb > ul > li > a:hover,
.header.scrolled .util ul li a:hover {
  color: var(--point-color);
}

.header.scrolled .logo img {
  filter: brightness(0) saturate(100%) invert(75%) sepia(35%) saturate(1150%) hue-rotate(305deg) brightness(98%) contrast(130%);
}

.header.scrolled .hamburger span {
  background-color: #333;
}

.header .inner {
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 95px;
  height: 100%;
}

/* 로고 */
.header h1 {
  height: 38px;
}

.header .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* GNB */
.header .gnb {
  height: 100%;
}

.header .gnb ul {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0 55px;
}

.header .gnb ul li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.header .gnb ul li a {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  transition: color 0.3s ease;
}

.header .gnb ul li a:hover {
  color: var(--point-color);
}

/* GNB 서브메뉴 */
.header .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateX(-23%);
  min-width: 180px;
  background: #fff;
  border-radius: 14px;
  padding: 18px 10px;
  z-index: 100;
  transition: opacity 0.2s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

.header .gnb ul li:hover > .sub-menu,
.header .gnb ul li:focus-within > .sub-menu {
  display: block;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.7);
}

.header .sub-menu ul {
  display: flex;
  flex-direction: column;
}

.header .sub-menu ul li {
  margin: 0;
  padding: 0;
  width: 100%;
}

.header .sub-menu ul li a {
  display: block;
  width: 100%;
  padding: 12px 28px;
  text-align: center;;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.header .sub-menu ul li a:hover {
  background: var(--point-color);
  color: #fff;
}

/* UTIL */
.header .util ul {
  display: flex;
  gap: 0 12px;
}

.header .util ul li a {
  font-size: 15px;
  color: #fff;
  transition: color 0.3s ease;
}

.header .util ul li a:hover {
  color: var(--point-color);
}

.header .util ul li:nth-of-type(1)::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 17px;
  background-color: #fff;
  margin-left: 12px;
  vertical-align: -3px;
}

.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 21px;
}

.hamburger a {
  display: block;
  width: 17px;
  height: 10px;
  position: relative;
}

.hamburger span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s;
}

.hamburger:hover span {
  background-color: var(--point-color);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

/* 모바일 메뉴 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: #fff;
  z-index: 9000;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu .mobile-inner {
  padding: 20px 16px;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-menu .menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding: 0 10px;
}

.mobile-menu .menu-header h2 {
  height: 38px;
}

.mobile-menu .menu-header img {
  height: 100%;
  width: auto;
  filter: brightness(0) saturate(100%) invert(75%) sepia(35%) saturate(1150%) hue-rotate(305deg) brightness(98%) contrast(130%);
}

.mobile-menu .close-btn {
  width: 24px;
  height: 24px;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.mobile-menu .close-btn span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #333;
  top: 50%;
  left: 0;
  transition: all 0.3s ease;
}

.mobile-menu .close-btn span:first-child {
  transform: rotate(45deg);
}

.mobile-menu .close-btn span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu .close-btn:hover span {
  background-color: var(--point-color);
}

.mobile-menu .menu-list {
  margin-bottom: 30px;
  flex: 1;
}

.mobile-menu .menu-list > li {
  border-bottom: 1px solid #eee;
}

.mobile-menu .menu-list > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10px;
  font-size: 18px;
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
}

.mobile-menu .menu-list > li > a::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.mobile-menu .menu-list > li > a.active::after {
  transform: rotate(-135deg);
}

.mobile-menu .sub-menu-mobile {
  display: none;
  padding: 0 10px 20px;
  background-color: #f8f9fa;
}

.mobile-menu .sub-menu-mobile.active {
  display: block;
}

.mobile-menu .sub-menu-mobile li a {
  display: block;
  padding: 15px 10px;
  font-size: 16px;
  color: #666;
  transition: color 0.3s ease;
}

.mobile-menu .util-menu {
  padding: 20px 10px;
  border: 1px solid #eee;
  border-radius: 8px;
  background-color: #f8f9fa;
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 0 10px;
}

.mobile-menu .util-menu li {
  flex: 1;
}

.mobile-menu .util-menu li:last-child {
  margin-bottom: 0;
}

.mobile-menu .util-menu a {
  display: block;
  padding: 15px 10px;
  font-size: 16px;
  color: #333;
  transition: color 0.3s ease;
  text-align: center;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
}

.mobile-menu .menu-list > li > a:hover,
.mobile-menu .sub-menu-mobile li a:hover,
.mobile-menu .util-menu a:hover {
  color: var(--point-color);
}

.mobile-menu .menu-list > li > a:hover::after {
  border-color: var(--point-color);
}

@media (max-width: 1280px) {
  .header .inner {
    padding: 0 40px;
  }

  .header .gnb {
    display: none;
  }
}

@media (max-width: 768px) {
  .header {
    margin-top: 0;
    height: 70px;
  }

  .header .inner {
    padding: 0 20px;
  }

  .header .util li:not(:last-child) {
    display: none;
  }
}