/* =========================================================
   commons.css
   - 사이트 전반에서 공통으로 사용하는 기본 스타일 가이드
   ========================================================= */

:root {
  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-text: #1f2937;
  --color-muted: #5b6475;
  --color-primary: #4f46e5;
  --color-primary-soft: #eef0ff;
  --shadow-card: 0 14px 30px rgba(24, 39, 75, 0.1);
  --shadow-hover: 0 18px 36px rgba(24, 39, 75, 0.14);
  --radius-card: 14px;
  --container-max: 1440px;
}

html {
  font-size: 16px;
}

body {
  font-family: "Noto Sans KR", "Hiragino Kaku Gothic ProN", "Yu Gothic", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section-space {
  padding: 72px 0;
}

.section-last {
  padding-bottom: 96px;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.28);
}

.btn-secondary {
  color: #2f3a7b;
  background: var(--color-primary-soft);
}

@media (max-width: 768px) {
  .section-space {
    padding: 52px 0;
  }

  .section-last {
    padding-bottom: 68px;
  }

  .container {
    padding: 0 16px;
  }
}

/* Kakao 애드핏: 광고 슬롯 뷰포트 가로 기준 가운데 정렬 */
.kakao_ad_area {
  display: block;
  width: min(300px, 100%);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-sizing: border-box;
}
