/* =============================================
   트리트비즈 — subpage.css (서브페이지 공통)
   ============================================= */

/* ── 본문 레이아웃 ── */
.subpage-body { background: var(--gray-1); }

.subpage-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
  padding: 40px 0 80px;
}

/* ── 사이드 LNB ── */
.lnb {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-2);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.lnb-title {
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 16px 20px;
  letter-spacing: .3px;
}

.lnb ul { padding: 8px 0; }

.lnb ul li a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  font-size: 13px;
  color: var(--text-sub);
  transition: all var(--ease);
  border-left: 3px solid transparent;
}

.lnb ul li a i {
  color: var(--gray-3);
  width: 14px;
  font-size: 12px;
  transition: color var(--ease);
}

.lnb ul li a:hover {
  color: var(--primary);
  background: var(--gray-1);
  border-left-color: var(--primary);
  padding-left: 24px;
}

.lnb ul li a:hover i { color: var(--primary); }

.lnb ul li a.active {
  color: var(--primary);
  background: rgba(26, 95, 122, .06);
  border-left-color: var(--primary);
  font-weight: 600;
}

.lnb ul li a.active i { color: var(--primary); }

/* ── 메인 콘텐츠 영역 ── */
.subpage-content {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-2);
  box-shadow: var(--shadow-sm);
  padding: 50px 52px;
  min-height: 500px;
}

/* 콘텐츠 제목 영역 */
.content-head {
  border-bottom: 2px solid var(--gray-2);
  padding-bottom: 26px;
  margin-bottom: 36px;
}

.content-head .c-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 196, 180, .1);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.content-head h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -.4px;
}

.content-head h2 span { color: var(--primary); }

.content-head p {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.85;
  max-width: 600px;
}

/* ── 개요 박스 ── */
.overview-box {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.overview-box::after {
  content: '';
  position: absolute;
  right: -40px; bottom: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .03);
}

.overview-box p {
  font-size: 15px;
  color: rgba(255, 255, 255, .75);
  line-height: 1.9;
  position: relative; z-index: 1;
}

.overview-box strong { color: var(--accent); }

/* ── 특징 카드 그리드 ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.feature-card {
  background: var(--gray-1);
  border-radius: var(--radius);
  padding: 26px 28px;
  border: 1px solid var(--gray-2);
  transition: transform var(--ease), box-shadow var(--ease);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.feature-card .fc-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; margin-bottom: 14px;
}

.feature-card h4 {
  font-size: 15px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px; color: var(--text-sub); line-height: 1.8;
}

/* ── 장점 리스트 ── */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.benefit-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--gray-1);
  border-radius: var(--radius);
  border: 1px solid var(--gray-2);
}

.benefit-item .bi-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(0, 196, 180, .1);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}

.benefit-item strong {
  display: block;
  font-size: 14px; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}

.benefit-item p {
  font-size: 13px; color: var(--text-sub); line-height: 1.75;
}

/* ── 프로세스 스텝 ── */
.sp-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}

.sp-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 28px;
}

.sp-step:last-child { padding-bottom: 0; }

.sp-step::before {
  content: '';
  position: absolute;
  left: 19px; top: 40px;
  width: 2px;
  bottom: 0;
  background: var(--gray-2);
}

.sp-step:last-child::before { display: none; }

.sp-step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; z-index: 1;
}

.sp-step-body h4 {
  font-size: 15px; font-weight: 700;
  color: var(--text); margin-bottom: 5px;
  padding-top: 9px;
}

.sp-step-body p {
  font-size: 13px; color: var(--text-sub); line-height: 1.8;
}

/* ── 하단 CTA ── */
.content-cta {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.content-cta h3 { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.content-cta p  { font-size: 14px; color: rgba(255,255,255,.7); }

/* ── 반응형 ── */
@media (max-width: 1024px) {
  .subpage-layout { grid-template-columns: 200px 1fr; gap: 20px; }
  .subpage-content { padding: 36px 36px; }
}

@media (max-width: 768px) {
  .subpage-layout { grid-template-columns: 1fr; padding: 24px 0 60px; }
  .lnb { position: static; }
  .subpage-content { padding: 28px 24px; }
  .content-head h2 { font-size: 22px; }
  .feature-grid { grid-template-columns: 1fr; }
  .content-cta { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .subpage-content { padding: 22px 16px; }
  .overview-box { padding: 24px 22px; }
}

/* ── 페이지 배너 이미지 (SVG 일러스트) ── */
.page-banner {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  background: linear-gradient(135deg, #0d1b2a 0%, #1a3a52 100%);
  position: relative;
}
.page-banner svg { display: block; width: 100%; height: auto; }

/* ── 통계 카운터 행 ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.stat-card {
  background: var(--gray-1);
  border: 1px solid var(--gray-2);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  transition: transform var(--ease), box-shadow var(--ease);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.stat-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -1px;
}
.stat-num span { font-size: 18px; }
.stat-label { font-size: 12px; color: var(--text-sub); font-weight: 500; }

/* ── 섹션 소제목 ── */
.sub-section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sub-section-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 18px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── 아이콘 색상 추가 ── */
.icon-box.green  { background: rgba(16,185,129,.1); color: #059669; }
.icon-box.red    { background: rgba(239,68,68,.1);  color: #dc2626; }
.icon-box.indigo { background: rgba(99,102,241,.1); color: #6366f1; }

@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-num  { font-size: 24px; }
}

/* ═══════════════════════════
   공통 테이블 스타일 (.sp-table)
═══════════════════════════ */
.sp-table-wrap {
  overflow-x: auto;
  margin: 12px 0 20px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #c8d8e8;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.sp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 480px;
}
/* 헤더 */
.sp-table thead th {
  background: var(--primary-dark);
  color: #fff;
  padding: 12px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.15);
}
/* 일반 셀 */
.sp-table td {
  padding: 12px 16px;
  border: 1px solid #c8d8e8;
  vertical-align: middle;
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
  background: #fff;
  text-align: center;
}
/* 짝수 행 배경 */
.sp-table tbody tr:nth-child(even) td { background: #f7fafd; }
/* 구분 셀 (첫 번째 열 라벨) */
.sp-table .sp-th-cell {
  background: #4a5568 !important;
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  vertical-align: middle !important;
  white-space: nowrap;
}
/* OS 강조 셀 */
.sp-table .sp-os-cell {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  text-align: center;
}
/* 텍스트 좌측 정렬 셀 */
.sp-table .sp-td-left { text-align: left !important; }
/* 마지막 행 굵게 */
.sp-table tfoot td,
.sp-table tbody tr.sp-total td {
  font-weight: 700;
  background: #eef4fa !important;
  color: var(--primary-dark);
}
@media (max-width: 640px) {
  .sp-table { font-size: 12px; min-width: 360px; }
  .sp-table td, .sp-table thead th { padding: 9px 10px; }
}
