/* ============================================================
   nav.css — TimeSave 공통 네비게이션 + 푸터 스타일
   각 서비스 폴더의 nav.css에서 @import하여 사용
   ============================================================ */

.ts-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  height: 90px;
  display: flex; align-items: stretch;
  font-family: 'DM Sans', system-ui, sans-serif;
}

/* 왼쪽: 서비스 전환 (아이콘 + 라벨) */
.ts-nav-left {
  flex: 1;
  display: flex; align-items: center; gap: 6px;
  padding: 0 30px;
}

.ts-nav-right {
  flex: 1;
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  padding: 0 30px;
}

/* 서비스 전환 버튼 */
.nav-svc {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-svc:hover { background: rgba(0,0,0,0.04); }
.nav-svc.active { background: rgba(37,99,235,0.08); }

.nav-svc-icon { width: 33px; height: 33px; flex-shrink: 0; }

.nav-svc span {
  font-size: 21px; font-weight: 500;
  color: #55556a;
  white-space: nowrap;
}
.nav-svc.active span { color: #111218; font-weight: 700; }

/* 세부 메뉴 */
.nav-sub {
  font-size: 21px; font-weight: 500;
  color: #55556a;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 12px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-sub:hover  { color: #111218; background: rgba(0,0,0,0.04); }
.nav-sub.active { color: #111218; background: rgba(0,0,0,0.06); font-weight: 700; }

/* 상단 nav 바 언어 셀렉터 (세부 메뉴 오른쪽) */
.ts-nav-right .ts-lang-select {
  margin-left: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  background: transparent;
  padding: 8px 12px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px; font-weight: 500;
  color: #55556a;
  cursor: pointer; outline: none;
  transition: border-color 0.15s, color 0.15s;
}
.ts-nav-right .ts-lang-select:hover  { border-color: rgba(0,0,0,0.25); color: #111218; }
.ts-nav-right .ts-lang-select:focus  { border-color: rgba(37,99,235,0.5); }
.ts-nav-right .ts-lang-select[hidden] { display: none; }

@media (max-width: 768px) {
  .ts-nav { height: auto; flex-wrap: wrap; }
  .ts-nav-left, .ts-nav-right { padding: 12px 20px; }
  .ts-nav-right {
    justify-content: flex-start;
    border-top: 1px solid rgba(0,0,0,0.06);
    flex-wrap: wrap;
  }
  .nav-svc span, .nav-sub { font-size: 18px; }
  .ts-nav-right .ts-lang-select {
    margin-left: auto;            /* 모바일: 셀렉터를 우측으로 밀어 구분 */
    font-size: 15px; padding: 7px 10px;
  }
}

/* ============================================================
   하단 크로스 프로모션
   ============================================================ */

.ts-promo {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 48px 30px 64px;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.ts-promo-inner { max-width: 860px; margin: 0 auto; }

.ts-promo-title {
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #9898b0;
  margin-bottom: 18px;
}

.ts-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.ts-promo-card {
  display: flex; align-items: center; gap: 14px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.ts-promo-card:hover {
  border-color: rgba(37,99,235,0.4);
  box-shadow: 0 4px 16px rgba(37,99,235,0.10);
  transform: translateY(-2px);
}

.ts-promo-card .nav-svc-icon { width: 40px; height: 40px; }

.ts-promo-texts {
  display: flex; flex-direction: column; gap: 3px;
  flex: 1; min-width: 0;
}

.ts-promo-name {
  font-size: 17px; font-weight: 700;
  color: #111218; line-height: 1.3;
}

.ts-promo-desc {
  font-size: 14px; color: #55556a; line-height: 1.4;
}

.ts-promo-arrow {
  font-size: 18px; color: #9898b0;
  flex-shrink: 0;
  transition: color 0.15s;
}
.ts-promo-card:hover .ts-promo-arrow { color: #2563EB; }

@media (max-width: 768px) {
  .ts-promo { padding: 36px 20px 48px; }
}

/* ============================================================
   공통 푸터 (언어 셀렉터는 상단 nav로 이동)
   ============================================================ */
.ts-footer {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 20px 30px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px; color: #9898b0;
  flex-wrap: wrap; gap: 12px;
}

@media (max-width: 768px) {
  .ts-footer { padding: 16px 20px; }
}
