/* Rev 3 (2026-10) — global 영역 전용 스타일. 이 영역 담당 작업만 수정할 것(.ai/REV3_SCOPE.md 참고).
   기존 style.css / intro-pages.css / skin 스타일은 수정하지 않고, 이 파일에서 더 구체적인 선택자로 덮어쓴다.
   (head.sub.php 에서 style.css 보다 뒤에 로드됨) */

/* ==========================================================================
   1. 글꼴 — Inter 를 모든 페이지/팝업/SweetAlert 경고창에 적용 (슬라이드1)
   reset.css 가 대부분 처리하지만, 뒤에 로드되는 SweetAlert 와 폼 요소까지 확실히 맞춘다.
   (브라우저 기본 alert() 창은 OS 글꼴이라 CSS로 바꿀 수 없다 — 가입 창의 검증 경고는 SweetAlert 로 대체함)
   ========================================================================== */
body,
button,
input,
select,
textarea,
.swal2-popup,
.swal2-container,
.swal2-title,
.swal2-html-container,
.swal2-content,
.swal2-styled,
.swal2-input {
  font-family: 'Inter', 'Open Sans', Arial, sans-serif;
}

/* ==========================================================================
   2. 상단 메뉴 — Partner ▾ / Client ▾ 드롭다운(PC), 아코디언(모바일)  (슬라이드13)
   동작: assets/js/rev3-global.js (hover + click + Esc)
   ========================================================================== */
.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
}

.nav-parent::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.2s;
}

.nav-has-sub.is-open > .nav-parent::after {
  transform: rotate(180deg);
}

.nav-sub {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---- PC 드롭다운 ---- */
.pc-header .nav-has-sub {
  position: relative;
}

.pc-header .nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  margin-top: 16px;
  padding: 8px 0;
  background: rgba(32, 36, 37, 0.97);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* 기존 .nav-list:hover{opacity:.8} 는 패널까지 투명하게 만들므로 부모 글자에만 적용한다 */
.pc-header .nav-list-grp .nav-has-sub:hover,
.pc-header .nav-list-grp .nav-has-sub:active {
  opacity: 1;
}

.pc-header .nav-has-sub:hover > .nav-parent {
  opacity: 0.8;
}

/* 부모와 패널 사이 빈틈 위로 마우스가 지나가도 닫히지 않게 하는 보조 영역 */
.pc-header .nav-sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.pc-header .nav-has-sub:hover > .nav-sub,
.pc-header .nav-has-sub:focus-within > .nav-sub,
.pc-header .nav-has-sub.is-open > .nav-sub {
  display: block;
}

.pc-header .nav-sub a {
  display: block;
  padding: 11px 22px;
  font-size: 16px;
  color: #fff;
  white-space: nowrap;
}

.pc-header .nav-sub a:hover,
.pc-header .nav-sub a:focus {
  background: rgba(255, 255, 255, 0.14);
}

/* ---- 모바일 메뉴(오버레이) 아코디언 ---- */
.m-header-page .nav-parent {
  padding: 20px 0;
}

.m-header-page .nav-sub {
  display: none;
  padding: 0 0 8px 18px;
}

.m-header-page .nav-has-sub.is-open > .nav-sub {
  display: block;
}

.m-header-page .nav-sub a {
  display: block;
  padding: 12px 0;
  font-size: 20px;
  color: #cfd6d8;
}

@media all and (max-width: 600px) {
  .m-header-page .nav-parent {
    padding: 10px 0;
  }

  .m-header-page .nav-sub {
    padding-bottom: 4px;
  }

  .m-header-page .nav-sub a {
    padding: 8px 0;
    font-size: 14px;
  }
}

/* ==========================================================================
   3. 페이지 타이틀 배너 배경 (슬라이드15–19)
   Partner/Client/News/Live together 사진은 Rev 2 파일을 그대로 사용(이미지 대조 확인).
   Partner 만 Rev 3 에서 사진이 바뀜 → 지구본+네트워크 사진(슬라이드15, pptx image22.jpg).
   Contact us 는 "기존 Live together 사진"(손가락 지문 사진, 슬라이드18) 사용.
   ========================================================================== */
.section-sub.section-sub-parnter {
  background-image: url(../images/rev3-global-partner-bg.jpg);
}

.section-sub.section-sub-contactus {
  background-image: url(../images/bg-subpage-livetogether.png);
}

/* ==========================================================================
   4. 로그인 / Create account 팝업 (슬라이드6★, 8★, 9)
   ========================================================================== */

/* ---- Continue with Google / OR ---- */
.rev3-sso {
  margin: 0 0 6px;
}

.rev3-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #c6cacc;
  border-radius: 3px;
  background: #fff;
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.rev3-google-btn:hover,
.rev3-google-btn:focus {
  border-color: #9aa0a6;
  background: #f7f8f8;
}

.rev3-google-ico {
  flex: none;
  width: 18px;
  height: 18px;
}

.rev3-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: #6b6f72;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.rev3-or::before,
.rev3-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d8dbdf;
}

.rev3-sso-lead {
  margin: -4px 0 16px;
  text-align: center;
  color: #444;
  font-size: 14px;
}

/* 가입 창: Google 블록은 탭 줄과 입력 상자 사이 */
.register > form > .rev3-sso {
  padding-top: 6px;
}

/* ---- 비밀번호 눈 아이콘 ---- */
.rev3-pw-wrap {
  position: relative;
  display: block;
}

.rev3-pw-wrap .frm_input {
  padding-right: 44px;
}

.rev3-pw-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #7b8084;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.rev3-pw-toggle:hover,
.rev3-pw-toggle:focus {
  color: #202425;
}

/* 로그인 입력창은 아래 여백이 입력창 자체에 있어(10px) 눈 아이콘이 위로 쏠리므로 래퍼로 옮긴다 */
#mb_login .rev3-pw-wrap {
  margin: 0 0 10px;
}

#mb_login #login_fs .rev3-pw-wrap .frm_input {
  margin: 0;
}

/* ---- 가입 창: 별표(*) 제거(슬라이드8 "별표들은 없어졌고"), 약관 문장 ---- */
#fregisterform .required,
#fregisterform textarea.required {
  background-image: none !important;
}

.rev3-terms {
  margin: 8px 0 0;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

/* Rev 7(2026-11-02): 이메일 가입 약관 동의 체크박스 — skin 의 `.register_form_inner label`(display:block; line-height:35px)을 이기려고 #fregisterform 으로 시작한다 */
#fregisterform .rev3-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 0;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

#fregisterform .rev3-agree input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #0080bb;
  cursor: pointer;
}

#fregisterform .rev3-agree a {
  color: #0080bb;
  text-decoration: underline;
}

/* ==========================================================================
   5. 푸터 (슬라이드12★) — 로고 / 링크 2줄 / Contact / © 문구
   ========================================================================== */
.footer .copyrights {
  line-height: 1.8;
}

.footer .copyrights a {
  color: inherit;
}

.footer .copyrights a:hover,
.footer .copyrights a:focus {
  text-decoration: underline;
}

@media all and (max-width: 600px) {
  .footer .copyrights {
    font-size: 12px;
    line-height: 1.7;
  }
}

/* ==========================================================================
   6. 모바일 News — 영어 단어가 중간에서 잘리는 문제 (슬라이드70★, 3, 4)
   원인: 목록 셀(.tbl_head01 td, default.css)과 보기 화면(#bo_v_title/#bo_v_con 등, 각 게시판 skin CSS)이
   word-break: break-all 이라 줄이 넘칠 때 글자 단위로 끊김("wo/rks.").
   → 단어 단위로 줄바꿈하고, 한 단어가 칸보다 길 때(URL 등)만 강제로 끊는다.
   ========================================================================== */
.tbl_head01 td,
.tbl_head01 th,
.tbl_head02 td,
#bo_list td,
#bo_list th,
#bo_v_title .bo_v_tit,
#bo_v_top ul,
#bo_v_con {
  word-break: normal;
  overflow-wrap: break-word;
}

/* ==========================================================================
   7. 로그인/가입 팝업을 휴대폰 폭에서도 맞춤 — 기존 skin CSS 가 450px 고정폭이라
   viewport 메타(head.sub.php)가 적용되는 좁은 화면에서 가로로 넘쳤다.
   ========================================================================== */
.mbskin,
.register {
  width: auto;
  max-width: 450px;
}

@media all and (max-width: 480px) {
  .mbskin,
  .register {
    margin-left: 10px;
    margin-right: 10px;
  }

  #login_fs {
    padding: 25px 18px;
  }
}

/* 비밀번호 찾기 창도 같은 이유로(인라인 width:450px) 좁은 화면에서만 폭을 맞춘다 */
@media all and (max-width: 480px) {
  #find_info.new_win {
    width: auto !important;
    margin-left: 10px;
    margin-right: 10px;
  }
}

/* Rev4: 페이지 배너 제목이 두 줄로 꺾이는 모바일(Live together 등)에서 왼쪽 끝에 붙던 문제 - 가운데 정렬 + 좌우 여백 */
.section-sub .subpage-ttl {
  text-align: center;
  padding: 0 16px;
  box-sizing: border-box;
}
