/* 모세프린텍 홈페이지 목업 공통 스타일 */
:root {
  --navy: #14304a;
  --navy-dark: #0d2135;
  --accent: #f0642e;
  --gray-bg: #f4f6f8;
  --text: #24303a;
  --text-sub: #5c6a76;
  --line: #dfe5ea;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: #fff;
  word-break: keep-all;       /* 한글 단어 중간에서 안 끊기게 */
  overflow-wrap: break-word;  /* 긴 영문/URL은 넘치지 않게 */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* 상단 유틸바 */
.topbar {
  background: var(--navy-dark);
  color: #cfd9e2;
  font-size: 13px;
}
.topbar .container {
  display: flex; justify-content: flex-end; gap: 18px; padding: 6px 20px;
}
.topbar strong { color: #fff; }

/* 헤더/내비 */
header.site {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
header.site .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; display: flex; align-items: center; }
.logo span { color: var(--accent); }
.logo img { height: 40px; width: auto; }
nav.gnb { display: flex; gap: 6px; }
nav.gnb a {
  padding: 10px 16px; font-size: 15px; font-weight: 600; color: var(--text);
  border-radius: 6px; white-space: nowrap;
}
nav.gnb a:hover { background: var(--gray-bg); color: var(--navy); }
nav.gnb a.active { color: var(--accent); }

/* 페이지 타이틀 */
.page-head {
  background: linear-gradient(135deg, var(--navy) 0%, #1d4568 100%);
  color: #fff; text-align: center; padding: 54px 20px;
}
.page-head h1 { font-size: 32px; letter-spacing: -1px; }
.page-head p { margin-top: 8px; color: #b9c9d6; font-size: 15px; }

/* 섹션 공통 */
section.block { padding: 64px 0; }
section.block.alt { background: var(--gray-bg); }
.sec-title { text-align: center; margin-bottom: 40px; }
.sec-title h2 { font-size: 27px; color: var(--navy); letter-spacing: -0.5px; }
.sec-title p { color: var(--text-sub); margin-top: 6px; font-size: 15px; }

/* 카드 그리드 */
.grid { display: grid; gap: 22px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(13,33,53,.12); }
.card .thumb { aspect-ratio: 4/3; overflow: hidden; background: #e8ecef; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 15px 17px 18px; }
.card .body h3 { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.card .body p { font-size: 13px; color: var(--text-sub); }

/* 버튼 */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 8px;
  font-weight: 700; font-size: 15px; cursor: pointer; border: none;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #d9531f; }
.btn.ghost { border: 2px solid #fff; color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.navy { background: var(--navy); color: #fff; }

/* CTA 배너 */
.cta {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: #fff; text-align: center; padding: 56px 20px;
}
.cta h2 { font-size: 26px; margin-bottom: 8px; }
.cta p { color: #b9c9d6; margin-bottom: 24px; }
.cta .btn + .btn { margin-left: 10px; }

/* 푸터 */
footer.site {
  background: #091829; color: #93a5b4; font-size: 13.5px;
  padding: 34px 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
footer.site .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
footer.site strong { color: #d7e0e8; }

/* 표 */
table.info { width: 100%; border-collapse: collapse; font-size: 15px; }
table.info th, table.info td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
table.info th { width: 160px; background: var(--gray-bg); color: var(--navy); }

/* 페이지네이션 */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 38px; }
.pagination button {
  min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line);
  background: #fff; border-radius: 7px; font-size: 14px; font-weight: 600;
  color: var(--text); cursor: pointer;
}
.pagination button:hover { border-color: var(--navy); color: var(--navy); }
.pagination button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination button:disabled { opacity: .35; cursor: default; }

/* 반응형 */
@media (max-width: 900px) {
  .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  nav.gnb a { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 560px) {
  .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  header.site .container { flex-direction: column; height: auto; padding: 10px 16px 8px; gap: 6px; }
  .logo img { height: 34px; }
  nav.gnb { flex-wrap: wrap; justify-content: center; gap: 2px; }
  nav.gnb a { padding: 7px 9px; font-size: 13.5px; }

  .topbar .container { justify-content: center; flex-wrap: wrap; gap: 3px 14px; padding: 5px 12px; font-size: 12px; }

  .page-head { padding: 36px 16px; }
  .page-head h1 { font-size: 24px; }
  .page-head p { font-size: 13.5px; }

  section.block { padding: 42px 0; }
  .sec-title { margin-bottom: 28px; }
  .sec-title h2 { font-size: 21.5px; }
  .sec-title p { font-size: 13.5px; }

  .btn { padding: 12px 20px; font-size: 14px; }

  .cta { padding: 42px 16px; }
  .cta h2 { font-size: 20px; }
  .cta p { font-size: 14px; }
  .cta .btn { display: block; max-width: 300px; margin: 0 auto; }
  .cta .btn + .btn { margin: 10px auto 0; }

  table.info { font-size: 13.5px; }
  table.info th, table.info td { padding: 11px 10px; }
  table.info th { width: 88px; }

  footer.site .container { flex-direction: column; text-align: center; gap: 10px; }

  .pagination { flex-wrap: wrap; gap: 5px; }
  .pagination button { min-width: 34px; height: 34px; font-size: 13px; }
}
