*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Pretendard", sans-serif;
}

:root {
  --blue: #0e4faf;
  --blue-dark: #0a3d8a;
  --white: #ffffff;
  --black: #212121;
  --gray: #666;
  --border: #e0e0e0;
}

body {
  font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
  font-size: 14px;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ============================================================
       PC TOP BAR
    ============================================================ */
.pc-top-bar {
  background: var(--blue);
}
.pc-top-bar-col {
  /* max-width: 1230px; */
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  margin: 0 auto;
  padding: 0 clamp(20px, 11vw, 230px);
}

.pc-top-bar__left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.pc-top-bar__left i {
  color: #fff;
  font-size: 16px;
  border: 1px solid #000;
  display: block;
  width: 20px;
  height: 20px;
}

.pc-top-bar__left svg {
  width: 16px;
  height: 16px;
}
.xi-home {
  font-size: 30px; /* 크기 조절 */
  color: blue; /* 색상 변경 */
}
.pc-top-bar__left:hover svg circle,
.pc-top-bar__left:hover svg path {
  /* fill: #ffd400 !important; */
  stroke: #ffd400;
}
.pc-top-bar__left:hover a {
  color: #ffd400;
}
.pc-top-bar__center {
  flex: 1;
  text-align: center;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
}

.pc-top-bar__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.pc-top-bar__right a {
  color: var(--white);
  display: flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.pc-top-bar__right a:hover {
  opacity: 1;
}
.pc-top-bar__right svg {
  width: 20px;
  height: 20px;
}

/* SNS 아이콘 hover */
.sns-icon-link svg {
  display: block;
}
.sns-circle,
.sns-shape,
.sns-stroke {
  transition:
    fill 0.2s,
    stroke 0.2s;
}
.sns-icon-link:hover .sns-circle {
  fill: #ffd400;
}

/* ============================================================
       PC MAIN HEADER
    ============================================================ */
.pc-main-header {
  border-bottom: 1px solid var(--border);
}

.pc-main-header-col {
  /* max-width: 1230px; */
  background: var(--white);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  padding: 0 19px;
  z-index: 1000;
  margin: 0 auto;
  padding: 0 clamp(20px, 11vw, 230px);
}

/* 로고 */
.pc-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.pc-logo img {
  width: clamp(160px, 10vw, 188px);
  height: auto;
}

.pc-logo__divider {
  width: 1px;
  height: 32px;
  background: rgba(14, 79, 175, 0.35);
  flex-shrink: 0;
}

.pc-logo__info {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

/* GNB */
.pc-nav {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: auto;
  margin-right: 20px;
}

.pc-nav__item {
  position: relative;
  height: 68px;
  display: flex;
  align-items: center;
}

.pc-nav__link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 clamp(14px, 1.2vw, 19px);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
  transition: color 0.2s;
  cursor: pointer;
  font-weight: 700;
  font-style: normal;
}

.pc-nav__link:hover,
.pc-nav__item:hover .pc-nav__link {
  color: var(--blue);
}

/* 드롭다운 */
.pc-dropdown {
  display: none;
  position: absolute;
  top: 78%;
  left: 0;
  transform: none;
  background: var(--white);
  min-width: 150px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
  z-index: 2000;
  border-radius: 2px;
}

.pc-nav__item:hover .pc-dropdown {
  display: block;
}

.pc-dropdown a {
  display: block;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  border-bottom: 1px solid #f2f2f2;
  transition: color 0.15s;
  white-space: nowrap;
}
.pc-dropdown a:last-child {
  border-bottom: none;
}
.pc-dropdown a:hover {
  color: var(--white);
  background: var(--blue);
}

/* 활성 메뉴 강조 */
.pc-nav__item.active > .pc-nav__link {
  color: var(--blue);
}

/* 검색 */
.pc-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  height: 28px;
}

.pc-search input {
  border: none;
  outline: none;
  padding: 6px 10px;
  font-size: 13px;
  width: 140px;
  font-family: inherit;
}

.pc-search button {
  background: none;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--gray);
  display: flex;
  align-items: center;
}
.pc-search button svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
       MOBILE HEADER
    ============================================================ */
.mobile-header {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 56px;
  align-items: center;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mobile-header__menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 40px;
}
.mobile-header__menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
}
.mobile-header__menu-text {
  font-size: 9px;
  font-weight: 700;
  color: var(--black);
  display: block;
  text-align: center;
  margin-top: 2px;
}

.mobile-header__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.mobile-header__logo img {
  height: 28px;
  width: auto;
}

.mobile-header__right {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.mobile-header__globe {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  padding: 4px;
  display: flex;
}
.mobile-header__globe svg {
  width: 22px;
  height: 22px;
}

/* ============================================================
       MOBILE DRAWER
    ============================================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
}
.drawer-overlay.show {
  display: block;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 9999;
  overflow-y: auto;
  transition: left 0.3s ease;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open {
  left: 0;
}

/* 드로어 헤더 */
.drawer-top {
  background: var(--white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.drawer-top img {
  height: 24px;
}

/* ✅ 수정(2): 닫기 버튼 - 드로어 오른쪽 바깥 + 흰색 */
.drawer-close {
  position: fixed;
  top: 12px;
  left: 308px; /* 드로어(300px) + 여유 */
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--white); /* 흰색 */
  line-height: 1;
  padding: 4px;
  z-index: 10000;
  display: none; /* 기본 숨김 */
}
/* 드로어 열릴 때만 표시 */
.mobile-drawer.open + .drawer-close {
  display: block;
}

/* 드로어 메뉴 */
.drawer-nav {
  flex: 1;
}

.drawer-item {
  border-bottom: 1px solid #f0f0f0;
}

.drawer-item__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.drawer-item__title:hover {
  background: #f8f9ff;
}
.drawer-item__title.active {
  color: var(--blue);
}

.drawer-item__title .chevron {
  font-size: 11px;
  color: var(--gray);
  transition: transform 0.2s;
}
.drawer-item__title.open .chevron {
  transform: rotate(180deg);
}

/* depth-2 */
.drawer-sub {
  display: none;
  background: #f8f9fc;
}
.drawer-sub.open {
  display: block;
}

.drawer-sub a {
  display: block;
  padding: 11px 20px 11px 32px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--black);
  border-bottom: 1px solid #eef0f5;
  transition: color 0.15s;
}
.drawer-sub a:last-child {
  border-bottom: none;
}
.drawer-sub a:hover {
  color: var(--white);
  background: var(--blue);
}

/* depth-2 아코디언 타이틀 */
.drawer-sub__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px 11px 32px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--black);
  border-bottom: 1px solid #eef0f5;
  cursor: pointer;
  user-select: none;
}
.drawer-sub__title .chevron {
  font-size: 10px;
  color: var(--gray);
  transition: transform 0.2s;
}
.drawer-sub__title.open .chevron {
  transform: rotate(180deg);
}

/* depth-3 */
.drawer-sub-sub {
  display: none;
  background: #f0f2f8;
}
.drawer-sub-sub.open {
  display: block;
}
.drawer-sub-sub a {
  display: block;
  padding: 9px 20px 9px 46px;
  font-size: 13px;
  color: #555;
  border-bottom: 1px solid #e8eaf2;
  transition: color 0.15s;
}
.drawer-sub-sub a:last-child {
  border-bottom: none;
}
.drawer-sub-sub a:hover {
  color: var(--white);
  background: var(--blue);
}

/* ============================================================
       RESPONSIVE
    ============================================================ */
@media (max-width: 992px) {
  .pc-top-bar,
  .pc-main-header {
    display: none;
  }
  .mobile-header {
    display: flex;
  }
}
