/* ==============================
   Sub GNB 전체
============================== */
.sub_gnb {
  position: relative;
  z-index: 20;
  margin-top: 20px;
  padding: 0 0 26px;
}

.sub_gnb_inner {
  width: calc(100% - 54px);
  max-width: 1190px;
  height: 100px;
  margin: 0 auto;
  padding: 0 42px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d9d9d9;
  box-sizing: border-box;
}

/* 좌측 현재 위치 */
.sub_location {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  white-space: nowrap;
}

.sub_location a {
  color: #111;
  text-decoration: none;
}

.sub_location .home_icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sub_location .home_icon svg {
  width: 17px;
  height: 17px;
  stroke: #111;
}

.sub_location .dot {
  color: #111;
  font-weight: 500;
}

.sub_location strong {
  font-weight: 600;
  color: #ff3939;
}

/* 우측 드롭다운 */
.sub_nav_select {
  position: relative;
  width: 250px;
}

.sub_nav_btn {
  width: 100%;
  height: 56px;
  padding: 0 27px;
  border: 0;
  border-radius: 999px;
  background: #ff3939;
  color: white;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.sub_nav_btn span {
  display: block;
}

.sub_nav_btn .arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  margin-top: -5px;
  transition: transform 0.25s ease;
}

.sub_nav_select.on .sub_nav_btn .arrow {
  transform: rotate(-135deg);
  margin-top: 5px;
}

/* 드롭다운 리스트 */
.sub_nav_dropdown {
  display: none;
  position: absolute;
  top: 66px;
  left: 0;
  width: 100%;
  padding: 10px 0;
  margin: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
  list-style: none;
  overflow: hidden;
  box-sizing: border-box;
}

.sub_nav_select.on .sub_nav_dropdown {
  display: block;
}

.sub_nav_dropdown li {
  margin: 0;
  padding: 0;
}

.sub_nav_dropdown li a,
#container .sub_gnb .sub_nav_dropdown li a {
  display: block;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: normal; /* override old line-height */
  background: none; /* override old background */
}

.sub_nav_dropdown li a:hover,
.sub_nav_dropdown li a.active,
#container .sub_gnb .sub_nav_dropdown li a:hover,
#container .sub_gnb .sub_nav_dropdown li a.active {
  background: #f5f5f5;
  color: #000;
  font-weight: 700;
}

/* 기존 ul 스타일 충돌 방지 */
.sub_gnb ul,
.sub_gnb li {
  list-style: none;
}

/* 모바일 */
@media (max-width: 768px) {
  .sub_gnb {
    /* margin-top: -45px; */
    padding: 0 0 18px;
  }

  .sub_gnb_inner {
    width: calc(100% - 30px);
    height: auto;
    min-height: 90px;
    padding: 20px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .sub_location {
    font-size: 14px;
    gap: 9px;
    flex-wrap: wrap;
  }

  .sub_nav_select {
    width: 100%;
  }

  .sub_nav_btn {
    height: 52px;
    font-size: 16px;
    padding: 0 22px;
  }

  .sub_nav_dropdown {
    top: 60px;
    z-index: 30;
  }
}
