@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Gowun+Dodum&display=swap');

/* ============================================================
   DBI Style — 보건의료인 대상 손해보험설계사 온보딩 (따뜻한 아이보리 톤)
   컨셉: 아이보리 종이 + 캐러멜 악센트 · 둥근 카드 · 격려하는 부드러운 톤
   루트 래퍼: .dbi_style
   ============================================================ */

/* 루트 래퍼 + 팔레트 (읽기 지면) */
.dbi_style { --paper: #FDF9F1; --cream: #FBF3E6; --card: #FFFFFF; --ink: #3B342C; --ink-soft: #6E6459; --accent: #C08457; --accent-deep: #A66A3C; --accent-soft: #EAD7C0; --accent-tint: #F6EBDA; --border: #EBE0CF; --highlight: #FBE7C6; --shadow: rgba(120, 92, 60, 0.10); background-color: var(--paper); color: var(--ink); font-family: 'Pretendard', sans-serif; line-height: 1.85; word-break: keep-all; -webkit-font-smoothing: antialiased; max-width: 820px; margin: 0 auto; padding: 52px 46px; box-sizing: border-box; min-width: 0; overflow-wrap: break-word; border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 10px 50px var(--shadow); }
.dbi_style > *:first-child { margin-top: 0; }
.dbi_style > *:last-child { margin-bottom: 0; }

/* --- 타이포그래피 --- */
.dbi_style h1, .dbi_style h2, .dbi_style h3, .dbi_style h4 { font-family: 'Gowun Dodum', sans-serif; color: var(--ink); margin-top: 0; }
.dbi_style h1 { font-size: 34px; line-height: 1.35; margin-bottom: 32px; color: var(--accent-deep); }
.dbi_style h2 { font-size: 25px; margin: 46px 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--accent-soft); }
.dbi_style h3 { font-size: 20px; margin: 34px 0 14px; color: var(--accent-deep); }
.dbi_style h4 { font-size: 18px; margin: 26px 0 12px; padding-left: 12px; border-left: 3px solid var(--accent); color: var(--accent-deep); }
.dbi_style p { font-size: 18px; margin: 0 0 20px; color: var(--ink-soft); }
.dbi_style strong { color: var(--ink); font-weight: 700; }
.dbi_style .highlight-text { background: linear-gradient(120deg, var(--highlight) 0%, var(--highlight) 100%) no-repeat; background-size: 100% 0.42em; background-position: 0 88%; font-weight: 700; color: var(--ink); }
.dbi_style .text-point { color: var(--accent-deep); font-weight: 700; }

/* --- 대단원 제목 (part-title: "1. 내 경험을 믿어요") --- */
.dbi_style .part-title { font-family: 'Gowun Dodum', sans-serif; font-size: 27px; font-weight: 700; color: var(--accent-deep); text-align: center; display: block; margin: 60px 0 24px; padding: 22px 20px; letter-spacing: 0.5px; background-color: var(--cream); border: 1px solid var(--accent-soft); border-radius: 16px; }

/* --- 소단원 헤더 (chapter-header: "1-1. ..." = chapter-num + chapter-title) --- */
.dbi_style .chapter-header { margin: 44px 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--accent-soft); }
.dbi_style .chapter-header .chapter-num { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-tint); letter-spacing: 1px; padding: 3px 12px; border-radius: 20px; margin-bottom: 10px; }
.dbi_style .chapter-header .chapter-title { font-family: 'Gowun Dodum', sans-serif; font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.4; margin: 0; padding: 0; border: none; }
.dbi_style .chapter-header h2, .dbi_style .chapter-header h3 { margin: 0; padding: 0; border: none; }

/* --- 도입 문단 (intro-bubble: 소단원 첫 격려 문단) --- */
.dbi_style .intro-bubble { background: var(--accent-tint); border-radius: 14px; padding: 18px 22px; margin: 16px 0 24px; font-size: 18px; color: var(--ink); position: relative; }
.dbi_style .intro-bubble p { color: var(--ink); margin: 0; }
.dbi_style .intro-bubble p + p { margin-top: 10px; }

/* --- 핵심 요약 · 강조 메시지 박스 (key-message) --- */
.dbi_style .key-message { background-color: var(--cream); border-left: 5px solid var(--accent); border-radius: 0 14px 14px 0; padding: 20px 24px; margin: 30px 0; }
.dbi_style .key-message::before { content: "핵심"; display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #fff; background: var(--accent); padding: 3px 11px; border-radius: 20px; margin-bottom: 10px; }
.dbi_style .key-message p { color: var(--ink); font-size: 17px; margin: 0; line-height: 1.8; }
.dbi_style .key-message p + p { margin-top: 10px; }

/* --- 보조/사례 박스 (example-box) --- */
.dbi_style .example-box { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; margin: 28px 0; box-shadow: 0 4px 14px var(--shadow); }
.dbi_style .example-box > *:last-child { margin-bottom: 0; }

/* --- 팁 박스 (tip-box) --- */
.dbi_style .tip-box { background: var(--card); border: 2px dashed var(--accent-soft); border-radius: 14px; padding: 24px; margin: 28px 0; position: relative; }
.dbi_style .tip-box::before { content: "TIP"; position: absolute; top: -11px; left: 22px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 2px 12px; border-radius: 20px; }
.dbi_style .tip-box p { margin-bottom: 0; color: var(--ink-soft); }

/* --- 강조 리스트 (guide-list): 강점/역량 나열 --- */
.dbi_style .guide-list { list-style: none; padding: 0; margin: 18px 0 26px; }
.dbi_style .guide-list li { position: relative; display: block; padding: 11px 16px 11px 34px; margin-bottom: 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); color: var(--ink); font-size: 17px; line-height: 1.7; }
.dbi_style .guide-list li::before { content: ''; position: absolute; left: 15px; top: 19px; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.dbi_style .guide-list li strong { color: var(--accent-deep); }
.dbi_style .guide-list li:has(> strong:first-child) > strong:first-child { display: block; margin-bottom: 4px; font-size: 1.05em; color: var(--ink); }

/* --- 체크 리스트 (check-list / check-item): 준비 내용·강점 확인 --- */
.dbi_style .check-list { list-style: none; padding: 0; margin: 18px 0 26px; }
.dbi_style .check-list li, .dbi_style .check-item { position: relative; padding: 11px 16px 11px 44px; margin-bottom: 8px; color: var(--ink); font-size: 17px; line-height: 1.7; }
.dbi_style .check-list li::before, .dbi_style .check-item::before { content: '✓'; position: absolute; left: 14px; top: 12px; width: 22px; height: 22px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }

/* --- 번호 스텝 리스트 (num-list / num-item): 추천 학습 순서 --- */
.dbi_style .num-list { counter-reset: dbi-num; list-style: none; padding: 0; margin: 20px 0 28px; }
.dbi_style .num-list li, .dbi_style .num-item { position: relative; padding: 15px 18px 15px 58px; margin-bottom: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; color: var(--ink); font-size: 17px; line-height: 1.7; box-shadow: 0 3px 10px var(--shadow); }
.dbi_style .num-list li::before, .dbi_style .num-item::before { counter-increment: dbi-num; content: counter(dbi-num); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }

/* --- 프로세스 스텝 (process-steps / process-step) --- */
.dbi_style .process-steps { counter-reset: dbi-step; padding: 0; margin: 24px 0; }
.dbi_style .process-step { position: relative; padding: 4px 0 26px 40px; border-left: 2px solid var(--accent-soft); margin-left: 14px; }
.dbi_style .process-step:last-child { border-left-color: transparent; padding-bottom: 0; }
.dbi_style .process-step::before { counter-increment: dbi-step; content: counter(dbi-step); position: absolute; left: -15px; top: 0; width: 28px; height: 28px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }

/* --- 기본 리스트 (특수 리스트 제외) --- */
.dbi_style ul:not(.guide-list):not(.check-list):not(.num-list) { list-style: none; padding-left: 4px; margin: 16px 0 24px; }
.dbi_style ul:not(.guide-list):not(.check-list):not(.num-list) > li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.dbi_style ul:not(.guide-list):not(.check-list):not(.num-list) > li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; background: var(--accent-soft); border-radius: 50%; }
.dbi_style ol:not(.num-list) { padding-left: 22px; margin: 16px 0 24px; }
.dbi_style ol:not(.num-list) > li { font-size: 17px; line-height: 1.7; margin-bottom: 10px; color: var(--ink-soft); padding-left: 6px; }

/* --- 표 (table-wrapper / table-container): 경험↔역량 비교표 --- */
.dbi_style .table-wrapper, .dbi_style .table-container { border: 1px solid var(--border); border-radius: 14px; background: var(--card); box-shadow: 0 4px 16px var(--shadow); margin: 30px 0; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dbi_style table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dbi_style thead, .dbi_style tbody { display: table; width: 100%; }
.dbi_style th { background: var(--accent-tint); color: var(--accent-deep); font-family: 'Gowun Dodum', sans-serif; font-weight: 700; text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--accent-soft); white-space: nowrap; }
.dbi_style td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--ink); }
.dbi_style tbody tr:nth-child(even) td { background: rgba(192, 132, 87, 0.045); }
.dbi_style tbody tr:last-child td { border-bottom: none; }
.dbi_style td:first-child { font-weight: 700; color: var(--accent-deep); }

/* --- 마무리 메시지 / CTA (footer-msg) --- */
.dbi_style .footer-msg { text-align: center; background: linear-gradient(135deg, var(--cream) 0%, var(--accent-tint) 100%); border: 1px solid var(--accent-soft); border-radius: 18px; padding: 32px 28px; margin: 44px 0 0; }
.dbi_style .footer-msg p { font-family: 'Gowun Dodum', sans-serif; font-size: 19px; color: var(--accent-deep); margin: 0; line-height: 1.7; }
.dbi_style .footer-msg p + p { margin-top: 10px; }

/* --- 구분선 (divider) --- */
.dbi_style .divider { border: none; text-align: center; margin: 46px 0; color: var(--accent-soft); }
.dbi_style .divider::after { content: "· · ·"; letter-spacing: 6px; font-size: 20px; }
.dbi_style hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* --- 이미지 --- */
.dbi_style img { max-width: 100%; height: auto; border-radius: 12px; margin: 16px 0; }
.dbi_style .image-caption { text-align: center; font-size: 0.85em; color: var(--ink-soft); margin-top: 6px; }

/* --- 반응형 --- */
@media (max-width: 768px) {
  .dbi_style { padding: 34px 18px; margin: 0; width: 100%; max-width: 100%; border: none; box-shadow: none; border-radius: 0; }
  .dbi_style h1 { font-size: 28px; }
  .dbi_style h2 { font-size: 22px; }
  .dbi_style .part-title { font-size: 22px; padding: 18px 16px; }
  .dbi_style .chapter-header .chapter-title { font-size: 20px; }
  .dbi_style p, .dbi_style .guide-list li, .dbi_style .check-list li, .dbi_style .num-list li { font-size: 16px; }
  .dbi_style .footer-msg p { font-size: 17px; }
}
