/* ============================================== */
/*                   /css/style.css               */
/* ============================================== */
/* ============================================== */
/*                   기본 설정                    */
/* ============================================== */

body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* ============================================== */
/*                HEADER 기본 구조                */
/* ============================================== */

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: clamp(0.5rem, 1.5vw, 1.5rem) 2vw;
  position: relative;
  z-index: 2000;
  box-sizing: border-box;
  isolation: isolate;
}

/* 레이아웃 영역 정의 */
.header-left { display: flex; align-items: center; }
.header-right { display: flex; align-items: center; gap: 20px; }

/* 로고 공통 사이즈 */
.header-left .logo {
  width: clamp(120px, 12vw, 190px);
  height: auto;
}

/* 메뉴 중앙 정렬 컨테이너 */
.main-menu-container {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* 메뉴 */
.main-menu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: clamp(50px, 4vw, 150px);
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 메뉴 항목 */
.main-menu a {
  text-decoration: none;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 600;
  font-size: clamp(15px, 1vw, 18px);
  letter-spacing: -0.2px;
  transition: color .25s ease, opacity .25s ease;
}

/* 서브메뉴 기본 구조 */
.main-menu > li {
  position: relative;
}

.main-menu > li::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 30px;
}

/* 서브메뉴 */
.submenu {
  list-style: none;
  opacity: 0;
  visibility: hidden;

  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);

  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);

  padding: 10px 0;
  min-width: 180px;
  margin: 0;
  text-align: center;

  transition: opacity .25s ease, transform .25s ease;
  z-index: 200;
}

.main-menu li:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 서브메뉴 글씨 */
.submenu li a {
  display: block;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 400;
  color: #222;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}

.submenu li a:hover {
  background: #eef3ff;
  color: #0f2679;
}

/* =================================================================== */
/*     서브페이지 전용 헤더 스타일 — index.scrolled 과 100% 동일     */
/* =================================================================== */

body:not(#index-page) .header-inner {
  background: rgba(255,255,255,0.97) !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.07) !important;

  padding: 22px 4vw !important;

  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;

  width: 100% !important;
  position: relative !important;
  z-index: 2000 !important;
}

/* 로고 = dark 로고 + 동일 크기 */
body:not(#index-page) .logo-dark {
  display: block !important;
  width: clamp(120px, 12vw, 190px) !important;
}
body:not(#index-page) .logo-white {
  display: none !important;
}

/* ============================= */
/*        메인메뉴 텍스트        */
/* ============================= */

body:not(#index-page) .main-menu a {
  color: #111 !important;
  text-shadow: none !important;

  font-family: 'Noto Sans KR', sans-serif !important;
  font-size: clamp(15px, 1vw, 18px) !important;
  font-weight: 600 !important;
  letter-spacing: -0.2px !important;

  opacity: 0.95 !important;
  text-decoration: none !important;

  transition: color .25s ease, opacity .25s ease;
}

body:not(#index-page) .main-menu a:hover {
  color: #0f2679 !important;
  opacity: 1 !important;
}

/* ============================= */
/*        서브메뉴 (설정 동일)   */
/* ============================= */

body:not(#index-page) .submenu {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.15) !important;
  border-radius: 6px !important;
  padding: 10px 0 !important;

  min-width: 180px !important;

  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}

body:not(#index-page) .main-menu > li:hover > .submenu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* 서브메뉴 텍스트 */
body:not(#index-page) .submenu li a {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #222 !important;

  padding: 10px 14px !important;
  letter-spacing: -0.15px !important;
  text-shadow: none !important;
  white-space: nowrap !important;

  transition: background .2s ease, color .2s ease;
}

body:not(#index-page) .submenu li a:hover {
  background: #eef3ff !important;
  color: #0f2679 !important;
}

/* ============================= */
/*      언어 선택(공통 적용)     */
/* ============================= */

body:not(#index-page) .lang-toggle,
body:not(#index-page) .lang-toggle *,
body:not(#index-page) .language-dropdown .lang-list * {
  color: #111 !important;
  text-shadow: none !important;
}

body:not(#index-page) .language-dropdown.open .lang-list {
  background: #fff !important;
  border: 1px solid #ddd !important;
}







/* ============================================== */
/*      LANG DROPDOWN — FINAL OVERRIDE FIX        */
/* ============================================== */

.header-right .language-dropdown {
  position: relative;
  display: inline-block;
  font-family: 'Noto Sans KR', sans-serif;
}

/* 토글 버튼 */
.header-right .lang-toggle {
  background: #fff !important;
  border: 1px solid #cfcfcf !important;
  border-radius: 20px !important;
  padding: 6px 16px !important;
  font-size: 0.95rem !important;
  font-weight: 600;
  color: #333 !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  outline: none;
}

/* hover */
.header-right .lang-toggle:hover {
  background: #f3f6ff !important;
  border-color: #0f2679 !important;
  color: #0f2679 !important;
}

/* ▼ 아이콘 */
.header-right .lang-toggle::after {
  content: "▼";
  font-size: 0.7rem;
  margin-left: 4px;
  opacity: 0.75;
}

/* 드롭다운 박스 */
.header-right .lang-list {
  list-style: none;
  padding: 8px 0 !important;
  margin: 0;
  position: absolute;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  background: #fff !important;
  border: 1px solid #d6d6d6 !important;
  border-radius: 10px !important;
  width: 80px !important;
  display: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 10000 !important;
}

/* 열렸을 때 */
.header-right .language-dropdown.open .lang-list {
  display: block !important;
}

/* 항목 */
.header-right .lang-list li a {
  text-align: center;
  display: block;
  padding: 10px 16px !important;
  text-decoration: none;
  font-size: 0.9rem !important;
  font-weight: 550;
  color: #333 !important;
  transition: background 0.2s ease, color 0.2s ease;
}

/* hover */
.header-right .lang-list li a:hover {
  background: #eef3ff !important;
  color: #0f2679 !important;
}


/* ============================================== */
/*                      FOOTER                    */
/* ============================================== */

footer {
  width: 100%;
  background-color: #333;
  color: #f0f0f0;
  padding: 40px 0;
  box-sizing: border-box;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  width: 60%;
  margin: 0 auto;
  padding: 0 50px;
  box-sizing: border-box;
  text-align: left;
}

/* 왼쪽 메뉴(회사소개/개인정보/1:1 문의/다운로드센터) */
.footer-left {
  flex: 1;
  min-width: 180px;
}

.footer-left .footer-links a {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin: 6px 0;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-left .footer-links a:hover {
  color: #fff;
}

/* 가운데 회사 정보 */
.footer-info {
  flex: 2;
  min-width: 260px;
  color: #d0d0d0;
  font-size: 14px;
  line-height: 1.6;
}

.footer-info p {
  margin: 4px 0;
}

/* 오른쪽 패밀리 사이트 */
.footer-right {
  flex: 1;
  min-width: 150px;
  position: relative;
}

.footer-right-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-right .family-links {
  list-style: none;
  padding: 10px;
  background-color: #7c7c7c;
  border-radius: 5px;
  display: none;
  position: absolute;
  top: 30px;
  right: 0;
  width: 150px;
}

.footer-right:hover .family-links {
  display: block;
}

.footer-right .family-links li a {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 14px;
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: #a0a0a0;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #444;
}


/* ============================================== */
/*               ADMIN SESSION BAR                */
/* ============================================== */

#adminSessionBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 38px;
  background: #0f2679;
  color: #fff;
  padding: 6px 16px;
  box-sizing: border-box;
  display: none;                   /* 기본 숨김 */
  justify-content: space-between;
  align-items: center;
  z-index: 9999 !important;        /* 최상단 */
}

#adminSessionBar .admin-left,
#adminSessionBar .admin-center,
#adminSessionBar .admin-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-timer {
  font-weight: 700;
  color: #ffd966;
}

.admin-btn {
  background: #fff;
  color: #0f2679;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.admin-btn:hover {
  background: #eef1ff;
}

/* admin bar가 있을 때 페이지 전체 내려감 */
body.has-admin-bar {
  padding-top: 38px !important;
}




[data-include] { display: contents !important; }
