/* ==================================================
   BBLAW RECRUIT FINAL DESIGN
   북부 전용 컬러 & 프리미엄 애니메이션 적용 (Fix v4)
   - 전체 텍스트 word-break: auto-phrase; 기본 적용
   - 통합 섹션(recruit_section02_04) 반응형 보강 (태블릿/모바일)
   - 버튼/그리드/타이포 스케일링 정리
   - section07(지도) 줌 방식 유지 + 모바일에서는 max-width 대응 보강
================================================== */

:root{
  --bb-navy: #0b1f4d;
  --bb-navy-deep:#071531;
  --bb-gold: #c9a24a;
  --bb-text: #1f1f1f;
  --bb-sub: #555;
  --bb-bg: #f6f7fb;
  --bb-line: #e6e6ea;
}

/* =======================
   ✅ 전역 텍스트 줄바꿈 정책
   - auto-phrase 지원 브라우저: 자연스러운 어절 줄바꿈
   - 미지원 브라우저: keep-all로 대체
======================= */
html{
  word-break: auto-phrase;
}
body{
  color: var(--bb-text);
  word-break: auto-phrase;
}
@supports not (word-break: auto-phrase){
  html, body{
    word-break: keep-all;
  }
}

/* 텍스트 요소에 확실히 적용 */
.recruit_section01,
.recruit_section02_04{
  word-break: auto-phrase;
}
.recruit_section01 * ,
.recruit_section02_04 *{
  word-break: auto-phrase;
}

/* 긴 링크/이메일은 줄바꿈 허용 */
a.mail{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =======================
   공통 컨테이너
======================= */
.recruit_section01 .wrap,
.recruit_section02_04 .wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

/* =======================
   상단(인트로)
======================= */
.recruit_section01{
  padding: 90px 0 50px;
  text-align: center;
}

.recruit_title{
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--bb-navy);
}

.recruit_hr{
  width: 1px;
  height: 70px;
  background: var(--bb-gold);
  border: none;
  margin: 25px auto;
}

.recruit_sub{
  font-size: 33px;
  color: var(--bb-sub);
  line-height: 1.9;
}

/* =======================
   통합 섹션(2/3/4)
======================= */
.recruit_section02_04{
  padding: 70px 0 90px;
  background: #fff;
}

/* 섹션 타이틀 */
.recruit_head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom: 25px;
}

.recruit_head .bar{
  width:6px;
  height:30px;
  background: var(--bb-gold);
  border-radius: 50px;
}

.recruit_head h3{
  font-size:38px;
  font-weight:900;
  color: var(--bb-navy);
  letter-spacing:-0.8px;
}

/* ✅ 통합 레이아웃: 좌(지원방법) / 우(직군 안내) */
.recruit_grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap:28px;
  align-items:start;
}

/* =======================
   채용절차(LEFT)
======================= */
.process_box{
  background:#fff;
  border:1px solid var(--bb-line);
  border-radius:18px;
  padding:35px;
  box-shadow:0 12px 30px rgba(0,0,0,0.05);
}

.process_box h4{
  font-size:22px;
  font-weight:900;
  color:var(--bb-navy);
  margin-bottom:18px;
}

.process_list{
  margin:0;
  padding:0;
  list-style:none;
}

.process_list li{
  font-size:15.5px;
  color:#444;
  line-height:1.9;
}

.process_list .mail{
  color:var(--bb-navy);
  font-weight:900;
  text-decoration:underline;
  text-decoration-color:var(--bb-gold);
}

.process_list .divider{
  height:1px;
  background: var(--bb-line);
  margin:18px 0;
  padding:0;
}

.process_list .subtit{
  font-weight:900;
  color: var(--bb-navy);
  margin-top: 2px;
}

/* =======================
   우측(직군 안내 RIGHT)
======================= */
.role_box{
  display:flex;
  flex-direction:column;
  gap:22px;
}

/* 카드 */
.role_card{
  background: #fff;
  border:1px solid var(--bb-line);
  border-radius:18px;
  padding:28px;
  box-shadow:0 12px 30px rgba(0,0,0,0.05);
  position:relative;
  overflow:hidden;
}

.role_card:after{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:3px;
  background:var(--bb-gold);
}

.role_card h4{
  font-size:22px;
  font-weight:900;
  color:var(--bb-navy);
  margin-bottom:14px;
}

.role_desc{
  font-size:15.5px;
  color: var(--bb-sub);
  line-height:1.9;
  margin-bottom:18px;
}

/* =======================
   버튼 (Premium)
======================= */
.role_actions{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.btn_recruit{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:22px 22px;
  border-radius:18px;
  color:#fff;
  text-decoration:none;
  font-weight:900;
  font-size:19px;
  background: linear-gradient(180deg, var(--bb-navy) 0%, var(--bb-navy-deep) 100%);
  border:1px solid rgba(201,162,74,0.35);
  box-shadow:0 15px 30px rgba(11,31,77,0.2);
  transition:all .3s cubic-bezier(.2,.8,.2,1);
  overflow:hidden;
}

.btn_recruit span{
  font-size: 16px;
  line-height: 1.3;
}

/* Shine effect */
.btn_recruit:before{
  content:"";
  position:absolute;
  top:0;
  left:-100%;
  width:60%;
  height:100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: all .6s ease;
}

.btn_recruit:hover:before{ left:120%; }

.btn_recruit:hover{
  transform:translateY(-4px);
  box-shadow:0 25px 45px rgba(11,31,77,0.35);
  border-color:var(--bb-gold);
}

/* ✅ Arrow 버튼 개선 */
.btn_recruit .arrow{
  width:56px;
  height:56px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  font-size:0;
  border:1px solid rgba(201,162,74,0.95);
  color:var(--bb-gold);
  background: rgba(0,0,0,0.12);
  transition:all .3s ease;
  flex: 0 0 auto;
}

.btn_recruit .arrow::before{
  content:"→";
  font-size:22px;
  font-weight:900;
  color:var(--bb-gold);
  transform: translateX(0);
  transition: transform .3s ease, color .3s ease;
}

.btn_recruit:hover .arrow{
  background:var(--bb-gold);
  border-color:var(--bb-gold);
}

.btn_recruit:hover .arrow::before{
  color:#fff;
  transform: translateX(2px);
}

/* large 버튼 */
.btn_recruit.large{
  width:100%;
  max-width: 520px;
  margin: 0 auto;
}

/* =======================
   STAFF 카드(우측 내)
======================= */
.staff_grid{
  display:grid;
  grid-template-columns: repeat(2,1fr);
  gap:14px;
  margin-top: 6px;
}

.staff_item{
  background:#fff;
  border:1px solid var(--bb-line);
  border-radius:16px;
  padding:18px 16px;
  transition:all .25s ease;
  position:relative;
  overflow:hidden;
}

.staff_item:after{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:3px;
  background:var(--bb-gold);
}

.staff_item:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 28px rgba(0,0,0,0.08);
  border-color:rgba(11,31,77,0.5);
}

.staff_item h5{
  font-size:15.5px;
  font-weight:900;
  color:var(--bb-navy);
  margin:0;
  line-height: 1.35;
}

/* =======================
   STAFF 지원 버튼 간격/정렬
======================= */
.staff_apply_wrap{
  margin-top: 18px;
  padding-top: 6px;
  text-align:center;
}

.staff_apply_wrap span{
  font-size: 16px;
}

/* =======================
   section07 (오피스 동일 유지)
   - 기존 zoom 방식 유지하되, 모바일에서 overflow 방지
======================= */
.section07{
  position: relative;
  width: 1681px;
  height: 784px;
  margin: 0 auto;
  padding: 50px 100px;
  max-width: 100%;
}

.section07 .map{ width: 100%; }

.path-line{ position: absolute; height: 4px; overflow: hidden; }

.path-line::before{
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(to right, red 50%, transparent 50%);
  background-size: 8px 4px;
}

.path-line1{ width: 80px; left: 710px; top: 535px; transform: rotate(20deg); }
.path-line1::before{ width: 0; animation: animateDashed1 2s linear infinite; }

.path-line2{ width: 160px; left: 735px; top: 475px; transform: rotate(295deg); }
.path-line2::before{ width: 0; animation: animateDashed2 2s linear infinite; }

.map_popup{ position:absolute; top:55%; left:50%; display:none; }

@keyframes animateDashed1 { to { width: 85px; } }
@keyframes animateDashed2 { to { width: 160px; } }

/* =======================
   ✅ 반응형 (강화)
   - 1200↓: 여백/폰트 조금 다운
   - 1024↓: 2열 → 1열 스택, 카드 패딩 줄임
   - 768↓: 버튼/화살표/텍스트 스케일 다운
   - 480↓: 더 촘촘하게
======================= */

/* (1) 큰 태블릿/노트북 */
@media (max-width:1200px){
  .recruit_section01 .wrap,
  .recruit_section02_04 .wrap{ padding: 0 18px; }

  .recruit_head h3{ font-size: 34px; }
  .recruit_sub{ font-size: 28px; }
}

/* (2) 태블릿 */
@media (max-width:1024px){
  .recruit_section01{ padding: 70px 0 40px; }
  .recruit_section02_04{ padding: 55px 0 70px; }

  .recruit_title{ font-size:30px; }
  .recruit_head h3{ font-size:28px; }

  /* ✅ 통합 섹션: 모바일 스택 */
  .recruit_grid{ grid-template-columns: 1fr; gap:18px; }

  .process_box{ padding: 26px; }
  .role_card{ padding: 24px; }

  .process_list li{ font-size: 15px; }
  .role_desc{ font-size: 15px; }

  .btn_recruit{ padding: 18px 16px; border-radius: 16px; }
  .btn_recruit span{ font-size: 15.5px; }

  .btn_recruit .arrow{ width:50px; height:50px; }
  .btn_recruit .arrow::before{ font-size: 20px; }

  .staff_grid{ grid-template-columns: 1fr; }
}

/* (3) 모바일 */
@media (max-width:768px){
  .recruit_section01{ padding: 58px 0 34px; }
  .recruit_section02_04{ padding: 44px 0 60px; }

  .recruit_head{ margin-bottom: 18px; }
  .recruit_head .bar{ height: 26px; }
  .recruit_head h3{ font-size: 24px; }

  .recruit_sub{ font-size: 20px; line-height: 1.7; }

  .process_box h4,
  .role_card h4{ font-size: 20px; }

  .process_list li{ font-size: 14.5px; }
  .role_desc{ font-size: 14.5px; }

  .btn_recruit{
    padding: 16px 14px;
    border-radius: 14px;
  }
  .btn_recruit span{ font-size: 15px; }

  .btn_recruit .arrow{
    width:46px;
    height:46px;
  }
  .btn_recruit .arrow::before{ font-size: 19px; }
}

/* (4) 작은 모바일 */
@media (max-width:480px){
  .recruit_section01 .wrap,
  .recruit_section02_04 .wrap{ padding: 0 14px; }

  .recruit_sub{ font-size: 18px; }
  .process_box{ padding: 22px; border-radius: 16px; }
  .role_card{ padding: 20px; border-radius: 16px; }

  .process_list li{ font-size: 14px; }
  .role_desc{ font-size: 14px; }

  .btn_recruit span{ font-size: 14.5px; }
  .btn_recruit .arrow{ width:44px; height:44px; }
}

/* section07 줌 유지 */
@media screen and (max-width: 1600px) { .section07{zoom: 0.8; padding:0;} }
@media screen and (max-width: 1400px) { .section07{zoom: 0.65;} }
@media screen and (max-width: 1024px) { .section07{zoom: 0.5;} }
@media screen and (max-width: 900px)  { .section07{zoom: 0.4;} }
@media screen and (max-width: 700px)  { .section07{zoom: 0.3;} }
@media screen and (max-width: 500px)  { .section07{zoom: 0.25;} }
@media screen and (max-width: 400px)  { .section07{zoom: 0.2;} }