/* @theme basic-theme */

/* =========================================
   Basic Marp Theme - Navy & Green
   =========================================

   [사용법]
   마크다운 frontmatter에서:
   ---
   marp: true
   theme: basic-theme
   ---

   [사용 가능한 슬라이드 클래스] <!-- _class: 클래스명 -->
   - title-slide : 타이틀 슬라이드 (네이비 배경, 중앙 정렬)
   - balanced    : 수직 중앙 정렬
   - value-slide : 상단 설명 + 하단 3열 카드 구조
   - roadmap-slide : 단계별 로드맵 (화살표 포함)
   - table-cols-25-55-20 : 테이블 열 너비 강제 (25%, 55%, 20%)

   [레이아웃 클래스]
   - .col-2 : 2열 그리드
   - .col-3 : 3열 그리드
   - .layout-sidebar-left  : 좌측 사이드바 (3:7)
   - .layout-sidebar-right : 우측 사이드바 (7:3)

   [박스/카드 클래스]
   - .card         : 기본 흰색 카드 (그림자)
   - .card-step    : 단계별 카드 (step-badge와 함께 사용)
   - .card-country : 상단 컬러 보더 카드
   - .paradigm-box : 좌측 녹색 보더 박스
   - .box-point    : 강조 포인트 박스 (연녹색 배경)
   - .compare-box  : 비교 카드 (.active로 강조)

   [기타 클래스]
   - .step-badge   : 단계 뱃지 (Step 1, Step 2...)
   - .box-tag      : 태그 뱃지 (.accent로 녹색)
   - .formula-display : 수식/강조 표시 영역
   - ul.check-list : 체크 리스트
   - .text-center  : 텍스트 중앙 정렬

   ========================================= */

/* -----------------------------------------
   1. 기본 설정 (Base Variables & Reset)
   ----------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  --navy: #002D62;
  --navy-light: #eff6ff;
  --green: #2E8B57;
  --green-light: #f0fdf4;
  --slate: #334155;
  --gray-bg: #F8FAFC;
  --red: #E53E3E;

  --font-main: 'Noto Sans KR', sans-serif;
  --font-head: 'Poppins', sans-serif;
}

section {
  font-family: var(--font-main);
  padding: 50px 70px;
  font-size: 20px;
  color: var(--slate);
  background-color: white;
  background-image: radial-gradient(circle at top right, rgba(0, 45, 98, 0.03), transparent);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* Footer Line */
section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--green) 100%);
}

/* -----------------------------------------
   2. 타이포그래피 (Typography)
   ----------------------------------------- */
h1, h2, h3, h4 { color: var(--navy); font-family: var(--font-head); margin-top: 0; }
h1 { font-size: 50px; font-weight: 700; letter-spacing: -1px; }
h2 { font-size: 40px; font-weight: 700; border-left: 8px solid var(--green); padding-left: 20px; margin-bottom: 25px; }
h3 { font-size: 28px; font-weight: 600; color: var(--green); margin-bottom: 15px; }
h4 { font-size: 22px; font-weight: 600; color: var(--slate); margin-bottom: 10px; }
strong { color: var(--navy); font-weight: 700; }

/* -----------------------------------------
   3. 레이아웃 시스템 (Layouts)
   ----------------------------------------- */
.col-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.col-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

.layout-sidebar-left { display: grid; grid-template-columns: 3fr 7fr; gap: 40px; align-items: start; }
.layout-sidebar-right { display: grid; grid-template-columns: 7fr 3fr; gap: 40px; align-items: start; }

/* 수직 균형 섹션 */
section.balanced { justify-content: center; }

/* value-slide: 상단 설명 + 하단 카드 */
section.value-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}
section.value-slide h2 { margin: 0; }
section.value-slide .col-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
section.value-slide .col-3 .card {
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 25px;
  font-size: 0.9em;
}
section.value-slide .col-3 .card strong {
  font-size: 1.2em;
  margin-bottom: 15px;
  display: block;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* -----------------------------------------
   4. 박스 스타일 (Cards & Boxes)
   ----------------------------------------- */
.card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  height: fit-content;
}

.paradigm-box {
  border-left: 10px solid var(--green);
  padding: 25px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  border-left-width: 10px;
}

.box-point {
  border-left: 10px solid var(--green);
  padding: 20px 25px;
  background: var(--green-light);
  border-radius: 4px 12px 12px 4px;
  margin-bottom: 20px;
}

.card-country {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  border-top: 5px solid;
  height: 100%;
}

/* 비교 박스 */
.compare-box {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 25px 15px;
  position: relative;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.compare-box.active {
  border: 2px solid var(--green);
  background-color: #f0fdf4;
  box-shadow: 0 10px 25px rgba(46, 139, 87, 0.15);
}

.box-tag {
  background: var(--slate);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  align-self: flex-start;
  margin-bottom: 15px;
}
.box-tag.accent { background: var(--green); }

.formula-display {
  background: #f1f5f9;
  border-radius: 8px;
  color: var(--navy);
  padding: 10px;
  text-align: center;
  font-weight: 700;
  margin-bottom: 15px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.compare-box.active .formula-display { background: white; border: 1px solid var(--green); color: var(--green); }

/* 단계별 로드맵 카드 */
.card-step {
  background: white;
  padding: 25px 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.card-step h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--navy); }
.card-step .step-badge {
  background: var(--navy); color: white; padding: 4px 12px;
  border-radius: 20px; font-size: 0.75rem; font-weight: bold;
  display: inline-block; margin-bottom: 15px;
}

/* roadmap-slide 전용 */
section.roadmap-slide .col-3 {
  align-items: stretch;
  height: auto;
}
section.roadmap-slide .col-3 .card-step:not(:last-child)::after {
  content: '▶';
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  color: #cbd5e1;
  font-size: 20px;
  z-index: 10;
}

/* -----------------------------------------
   5. 리스트 & 표 (Lists & Tables)
   ----------------------------------------- */
ul.check-list { list-style: none; padding: 0; }
ul.check-list li { padding-left: 28px; position: relative; margin-bottom: 8px; }
ul.check-list li::before { content: '✔'; position: absolute; left: 0; color: var(--green); font-weight: bold; }

table {
  display: table;
  width: 100% !important;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  font-size: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 15px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

th {
  background-color: var(--navy);
  color: white !important;
  font-weight: 600;
  text-align: center;
  border-bottom: 2px solid var(--green);
}

tr:nth-child(even) td { background-color: var(--gray-bg); }

/* 테이블 열 너비 강제 */
section.table-cols-25-55-20 table th:nth-child(1),
section.table-cols-25-55-20 table td:nth-child(1) { width: 25%; }
section.table-cols-25-55-20 table th:nth-child(2),
section.table-cols-25-55-20 table td:nth-child(2) { width: 55%; }
section.table-cols-25-55-20 table th:nth-child(3),
section.table-cols-25-55-20 table td:nth-child(3) { width: 20%; text-align: center; }

/* -----------------------------------------
   6. 유틸리티 & 타이틀 슬라이드
   ----------------------------------------- */
.text-center { text-align: center; }

section.title-slide {
  background: var(--navy);
  color: white;
  justify-content: center;
  align-items: center;
  text-align: center;
}
section.title-slide h1 { color: white; }
section.title-slide::after { display: none; }
