/* 창일 홈페이지 스타일 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Malgun Gothic', '맑은 고딕', sans-serif; line-height: 1.6; color: #333; }

/* 헤더 */
.header { background: #fff; border-bottom: 2px solid #1e5fa8; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 60px; width: auto; image-rendering: -webkit-optimize-contrast; }
.nav ul { list-style: none; display: flex; gap: 32px; }
.nav a { text-decoration: none; color: #0d2a4a; font-weight: 800; font-size: 16px; letter-spacing: -0.3px; transition: color 0.2s; }
.nav a:hover { color: #1e5fa8; }

/* 히어로 */
.hero { background: linear-gradient(135deg, #1e5fa8 0%, #3a8dd8 100%); color: #fff; padding: 120px 20px; text-align: center; }
.hero h1 { font-size: 48px; margin-bottom: 20px; font-weight: 700; }
.hero p { font-size: 20px; opacity: 0.95; max-width: 700px; margin: 0 auto; }
.hero-cta { margin-top: 40px; }
.btn { display: inline-block; padding: 16px 40px; background: #fff; color: #0d2a4a; border-radius: 4px; text-decoration: none; font-weight: 900; font-size: 17px; letter-spacing: -0.3px; transition: all 0.2s; }
.btn:hover { background: #f0f0f0; transform: translateY(-2px); }

/* 섹션 공통 */
.section { padding: 80px 20px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: 36px; margin-bottom: 50px; color: #1e5fa8; position: relative; padding-bottom: 20px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: #1e5fa8; }
.section-subtitle { text-align: center; color: #666; margin-bottom: 50px; font-size: 16px; }
.bg-light { background: #f7f9fc; }

/* 카드 그리드 */
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.card-icon { width: 60px; height: 60px; background: #1e5fa8; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; font-weight: bold; }
.card h3 { color: #1e5fa8; margin-bottom: 15px; font-size: 20px; }
.card p { color: #555; font-size: 15px; }

/* 테이블 */
.info-table { width: 100%; max-width: 700px; margin: 0 auto; border-collapse: collapse; }
.info-table th, .info-table td { padding: 16px 20px; border-bottom: 1px solid #e0e0e0; text-align: left; }
.info-table th { background: #f7f9fc; color: #1e5fa8; width: 30%; font-weight: 600; }

/* 인증서 표지 갤러리 */
.cert-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cert-item { background: #fff; border: 1px solid #e8eef5; border-radius: 8px; transition: all 0.25s; text-decoration: none; color: inherit; display: block; overflow: hidden; }
.cert-item:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(30,95,168,0.18); border-color: #1e5fa8; }
.cert-thumb { width: 100%; aspect-ratio: 3 / 4; background: #f7f9fc; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cert-info { padding: 12px 10px; text-align: center; border-top: 1px solid #f0f4f9; }
.cert-name { font-weight: 600; color: #1e5fa8; font-size: 13px; line-height: 1.4; }
.cert-item.no-doc { opacity: 0.55; cursor: default; }
.cert-item.no-doc:hover { transform: none; box-shadow: none; border-color: #e8eef5; }
.cert-thumb-empty { color: #aaa; font-size: 13px; padding: 20px; text-align: center; }
@media (max-width: 768px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* 푸터 */
.footer { background: #1a2332; color: #ccc; padding: 50px 20px 20px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; margin-bottom: 15px; font-size: 16px; }
.footer p { font-size: 14px; line-height: 1.8; }
.footer-bottom { max-width: 1200px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid #333; text-align: center; font-size: 13px; color: #888; }

/* 페이지 헤더 */
.page-header { background: linear-gradient(135deg, #1e5fa8 0%, #3a8dd8 100%); color: #fff; padding: 80px 20px; text-align: center; }
.page-header h1 { font-size: 40px; margin-bottom: 10px; }
.page-header p { opacity: 0.9; }

/* SVG 아이콘 시스템 */
.icon-svg { width: 60px; height: 60px; margin: 0 auto 20px; display: block; }
.icon-circle { width: 80px; height: 80px; background: linear-gradient(135deg, #1e5fa8, #3a8dd8); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 4px 12px rgba(30,95,168,0.25); }
.icon-circle svg { width: 40px; height: 40px; fill: #fff; }
.icon-circle-light { background: #e8f0fa; }
.icon-circle-light svg { fill: #1e5fa8; }

/* 데코 도형 */
.deco-section { position: relative; overflow: hidden; }
.deco-circle-1 { position: absolute; top: -100px; right: -100px; width: 300px; height: 300px; background: rgba(30,95,168,0.05); border-radius: 50%; z-index: 0; }
.deco-circle-2 { position: absolute; bottom: -80px; left: -80px; width: 200px; height: 200px; background: rgba(58,141,216,0.08); border-radius: 50%; z-index: 0; }
.deco-section .container { position: relative; z-index: 1; }

/* 통계 박스 */
.stat-box { text-align: center; padding: 40px 20px; }
.stat-number { font-size: 56px; font-weight: 800; background: linear-gradient(135deg, #1e5fa8, #3a8dd8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.stat-label { color: #666; margin-top: 10px; font-size: 15px; font-weight: 500; }

/* 플로우 단계 (개선) */
.flow-step { position: relative; padding: 25px 20px; background: #fff; border-radius: 8px; text-align: center; min-width: 130px; flex: 1; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.2s; }
.flow-step:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(30,95,168,0.15); }
.flow-step::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #1e5fa8, #3a8dd8); border-radius: 8px 8px 0 0; }
.flow-arrow { color: #1e5fa8; font-size: 28px; font-weight: 300; }

/* 비포 애프터 비교 */
.compare-box { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.compare-box > div { padding: 30px; }
.compare-before { background: #f5f5f5; }
.compare-after { background: linear-gradient(135deg, #e8f0fa, #d4e3f5); }
.compare-tag { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.compare-before .compare-tag { background: #ddd; color: #666; }
.compare-after .compare-tag { background: #1e5fa8; color: #fff; }

/* 체크 리스트 */
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 10px 0 10px 32px; position: relative; color: #444; line-height: 1.7; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; background: #1e5fa8; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: bold; }

/* 모바일 반응형 */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 15px; }
  .nav ul { flex-wrap: wrap; gap: 15px; justify-content: center; font-size: 14px; }
  .hero { padding: 80px 20px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .section-title { font-size: 28px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
