/* =========================================================
   K창업연구소 공통 스타일
   - 한국어 / 영어 다국어 사이트 공통 사용
   - 배경 흰색
   - section 간격 축소
   - 스마트폰 메뉴 1줄 처리
   - 카테고리 사이 | 표시
   - 반응형
   - 상단 고정 헤더
   - 햄버거 버튼 미사용
   ========================================================= */


/* =========================
   1. 기본 설정
   ========================= */

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family:
    "Pretendard",
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    Arial,
    sans-serif;
  color: #202124;
  background: #ffffff;
  line-height: 1.7;
  word-break: keep-all;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

main {
  display: block;
}

::selection {
  background: #6f2dbd;
  color: #ffffff;
}


/* =========================
   2. 색상 변수
   ========================= */

:root {
  --purple: #5b1fa6;
  --purple-dark: #42147e;
  --purple-light: #f4eefc;
  --purple-soft: #ede4f8;
  --black: #202124;
  --gray-900: #2b2f36;
  --gray-700: #4f5661;
  --gray-500: #737b86;
  --gray-300: #dfe3ea;
  --gray-200: #edf0f5;
  --gray-100: #f7f8fb;
  --white: #ffffff;
  --yellow: #ffd84d;
  --red: #d93025;
  --green: #0f9d58;
  --shadow: 0 10px 28px rgba(30, 30, 60, 0.06);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1180px;
}


/* =========================
   3. 현재 페이지 공유바
   ========================= */

.top-share-bar {
  width: 100%;
  background: #f7f2ff;
  border-bottom: 1px solid #e5dcf4;
  padding: 8px 20px;
  position: relative;
  z-index: 120;
}

.top-share-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.top-share-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--purple-dark);
  white-space: nowrap;
}

.top-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.share-btn {
  border: 1px solid #dfd2f3;
  background: #ffffff;
  color: var(--purple);
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: var(--purple);
  color: #ffffff;
  border-color: var(--purple);
}


/* =========================
   4. 헤더 / 메뉴
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--purple);
  color: #ffffff;
  box-shadow: 0 8px 30px rgba(30, 20, 70, 0.18);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 72px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
}

.nav-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-menu a:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  pointer-events: none;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(255, 255, 255, 0.18);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.language-switch a:hover,
.language-switch a.active {
  background: #ffffff;
  color: var(--purple);
  border-color: #ffffff;
}


/* =========================
   5. 메인 히어로
   ========================= */

.info-page {
  background: #ffffff;
}

.info-hero {
  padding: 76px 20px 64px;
  background:
    linear-gradient(135deg, rgba(91, 31, 166, 0.96), rgba(66, 20, 126, 0.94)),
    url("/images/og-kstartup.jpg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.info-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.info-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff2b8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.info-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.info-hero-text {
  max-width: 790px;
  margin: 24px 0 0;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.cta-btn.primary {
  background: var(--yellow);
  color: #251300;
}

.cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 216, 77, 0.25);
}

.cta-btn.secondary {
  background: #ffffff;
  color: var(--purple);
  border-color: #ffffff;
}

.cta-btn.secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
}


/* =========================
   6. 공통 섹션
   ========================= */

.info-section {
  padding: 22px 20px;
}

.info-section:first-of-type {
  padding-top: 34px;
}

.info-box {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 36px;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.info-box h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: -0.05em;
  color: var(--gray-900);
}

.info-box h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--gray-900);
}

.info-box p {
  margin: 0 0 12px;
  color: var(--gray-700);
  font-size: 16px;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.summary-card {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--purple-light);
  border: 1px solid #e2d3f4;
}

.summary-card p {
  color: var(--purple-dark);
  font-weight: 800;
}


/* =========================
   7. 카드 / 그리드
   ========================= */

.subpage-grid,
.point-grid,
.process-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.subpage-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.point-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.subpage-card,
.point-card,
.process-card {
  display: block;
  min-height: 100%;
  padding: 22px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--gray-200);
  transition: all 0.2s ease;
}

.subpage-card:hover,
.point-card:hover,
.process-card:hover {
  transform: translateY(-3px);
  border-color: #d7c5ef;
  box-shadow: 0 14px 30px rgba(91, 31, 166, 0.08);
}

.subpage-card {
  background:
    linear-gradient(180deg, #ffffff, #fbf8ff);
}

.subpage-card p,
.point-card p,
.process-card p {
  margin: 0;
  font-size: 15px;
}

.process-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--purple);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}


/* =========================
   8. FAQ
   ========================= */

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.faq-item {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}

.faq-item h3 {
  font-size: 18px;
}

.faq-item p {
  margin: 0;
}


/* =========================
   9. CTA 박스
   ========================= */

.cta-box {
  background:
    linear-gradient(135deg, #5b1fa6, #42147e);
  color: #ffffff;
  border: none;
}

.cta-box h2,
.cta-box h3,
.cta-box p {
  color: #ffffff;
}

.cta-box p {
  opacity: 0.92;
}


/* =========================
   10. 테이블
   ========================= */

.info-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #ffffff;
}

.info-table th,
.info-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}

.info-table th {
  background: var(--purple-light);
  color: var(--purple-dark);
  font-weight: 900;
}

.info-table tr:last-child td {
  border-bottom: none;
}


/* =========================
   11. AI 도구 공통
   ========================= */

.ai-tool-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
  align-items: start;
}

.ai-tool-panel,
.ai-result-panel {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}

.ai-tool-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  font-size: 14px;
  font-weight: 900;
  color: var(--gray-900);
}

.form-row input,
.form-row select,
.form-row textarea,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 15px;
  color: var(--gray-900);
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.form-row textarea,
.contact-form textarea {
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(91, 31, 166, 0.12);
}

.ai-submit-btn,
.copy-btn,
.download-btn {
  min-height: 48px;
  border: none;
  border-radius: 999px;
  padding: 0 20px;
  background: var(--purple);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  transition: all 0.2s ease;
}

.ai-submit-btn:hover,
.copy-btn:hover,
.download-btn:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
}

.ai-result-box {
  min-height: 240px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  white-space: pre-wrap;
  color: #343a40;
  font-size: 15px;
}

.ai-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}


/* =========================
   12. 관련 링크 박스
   ========================= */

.related-links {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}

.related-links h2 {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.related-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.related-link-grid a {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--purple-light);
  color: var(--purple-dark);
  font-size: 14px;
  font-weight: 900;
  transition: all 0.2s ease;
}

.related-link-grid a:hover {
  background: var(--purple);
  color: #ffffff;
}


/* =========================
   13. 프로필 / 도서 / 교육 카드
   ========================= */

.profile-box {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.profile-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
}

.profile-content h2 {
  margin-top: 0;
}

.career-list,
.book-list,
.media-list,
.education-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.career-list li,
.book-list li,
.media-list li,
.education-list li {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.book-card {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: #ffffff;
  transition: all 0.2s ease;
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d7c5ef;
}

.book-card h3 {
  font-size: 19px;
}

.book-card .isbn {
  margin-top: 12px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
}


/* =========================
   14. 푸터
   ========================= */

.site-footer {
  margin-top: 36px;
  background: #1f1233;
  color: #ffffff;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 44px;
}

.footer-info h2,
.footer-cta h3 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.footer-info p,
.footer-cta p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.82);
}

.footer-company {
  margin-top: 22px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
}

.footer-company p {
  margin: 0 0 8px;
  font-size: 14px;
}

.footer-company p:last-child {
  margin-bottom: 0;
}

.footer-company strong {
  display: inline-block;
  min-width: 90px;
  color: #ffffff;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.footer-btn.primary {
  width: 100%;
  min-height: 50px;
  background: var(--yellow);
  color: #251300;
}

.footer-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.footer-btn:hover {
  transform: translateY(-2px);
}

.contact-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border-color: rgba(255, 255, 255, 0.18);
}

.contact-form-message {
  min-height: 22px;
  font-size: 14px;
  font-weight: 800;
  color: #fff2b8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}


/* =========================
   15. 유틸리티
   ========================= */

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-20 {
  margin-top: 20px !important;
}

.mt-30 {
  margin-top: 30px !important;
}

.hidden {
  display: none !important;
}

.notice-box {
  padding: 18px;
  border-radius: var(--radius-md);
  background: #fff8df;
  border: 1px solid #ffe08a;
  color: #5f4300;
  font-weight: 800;
}

.warning-box {
  padding: 18px;
  border-radius: var(--radius-md);
  background: #fff1f0;
  border: 1px solid #ffd1ce;
  color: #8c1d18;
  font-weight: 800;
}


/* =========================
   16. 반응형
   ========================= */

@media (max-width: 1100px) {
  .subpage-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .point-grid,
  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ai-tool-layout {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 860px) {
  .top-share-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .top-share-links {
    justify-content: flex-start;
  }

  .header-inner {
    min-height: auto;
    padding: 12px 14px 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo language"
      "nav nav";
    align-items: center;
    gap: 10px 12px;
  }

  .logo {
    grid-area: logo;
    font-size: 20px;
    min-width: 0;
  }

  .language-switch {
    grid-area: language;
    justify-self: end;
    margin-left: 0;
  }

  .nav-menu {
    grid-area: nav;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    padding-top: 2px;
  }

  .nav-menu a {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0 6px;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    word-break: keep-all;
    overflow: visible;
    text-overflow: clip;
    letter-spacing: -0.04em;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: transparent;
  }

  .nav-menu a:not(:last-child)::after {
    right: -2px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
  }

  .info-hero {
    padding: 58px 18px 48px;
  }

  .info-hero-text {
    font-size: 17px;
  }

  .info-section {
    padding: 18px 16px;
  }

  .info-section:first-of-type {
    padding-top: 28px;
  }

  .info-box {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .profile-box {
    grid-template-columns: 1fr;
  }

  .profile-image {
    max-width: 320px;
  }

  .related-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 640px) {
  body {
    line-height: 1.65;
  }

  .top-share-bar {
    padding: 8px 14px;
  }

  .share-btn {
    min-height: 28px;
    padding: 4px 9px;
    font-size: 11px;
  }

  .header-inner {
    padding: 10px 12px 12px;
    gap: 8px 10px;
  }

  .logo {
    font-size: 18px;
  }

  .language-switch a {
    min-width: 34px;
    height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }

  .nav-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .nav-menu a {
    min-height: 36px;
    padding: 0 4px;
    font-size: 13px;
    line-height: 1.1;
    border-radius: 0;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    letter-spacing: -0.06em;
  }

  .nav-menu a:not(:last-child)::after {
    right: -2px;
    font-size: 12px;
  }

  .info-eyebrow {
    font-size: 11px;
  }

  .info-hero h1 {
    font-size: 34px;
  }

  .info-hero-text {
    font-size: 16px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-btn {
    width: 100%;
  }

  .subpage-grid,
  .point-grid,
  .process-grid,
  .book-grid,
  .related-link-grid {
    grid-template-columns: 1fr;
  }

  .subpage-card,
  .point-card,
  .process-card,
  .book-card {
    padding: 20px;
  }

  .footer-inner {
    padding: 42px 16px;
  }

  .footer-actions {
    flex-direction: column;
  }

  .footer-btn.secondary {
    width: 100%;
  }

  .ai-tool-panel,
  .ai-result-panel {
    padding: 22px;
  }
}


@media (max-width: 420px) {
  .nav-menu a {
    font-size: 12.5px;
    padding: 0 3px;
    letter-spacing: -0.08em;
  }

  .nav-menu a:not(:last-child)::after {
    right: -2px;
    font-size: 11px;
  }
}


@media (max-width: 360px) {
  .nav-menu a {
    font-size: 11.5px;
    padding: 0 2px;
    letter-spacing: -0.09em;
  }

  .nav-menu a:not(:last-child)::after {
    right: -2px;
    font-size: 10px;
  }
}

/* =========================
   상단 카테고리 고정
   ========================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 300;
}

main {
  padding-top: 72px;
}

/* 공유바는 헤더 아래로 자연스럽게 내려오지 않게 처리 */
.top-share-bar {
  margin-top: 72px;
}

/* 모바일: 로고 + 언어 + 카테고리 2단 구조 높이 반영 */
@media (max-width: 860px) {
  main {
    padding-top: 112px;
  }

  .top-share-bar {
    margin-top: 112px;
  }
}

/* 작은 스마트폰 */
@media (max-width: 640px) {
  main {
    padding-top: 104px;
  }

  .top-share-bar {
    margin-top: 104px;
  }
}

/* =========================
   AI 도구 입력 폼 정리
   ========================= */

.ai-tool-form {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field label {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.03em;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font-size: 15px;
  line-height: 1.5;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9ca3af;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #6d28d9;
  box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.12);
}

.ai-tool-form .cta-btn {
  width: 100%;
  margin-top: 10px;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.ai-result-wrap {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid #e5e7eb;
}

.ai-result-wrap h3 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.04em;
}

.ai-result-box {
  min-height: 180px;
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #f9fafb;
  color: #111827;
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.ai-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.ai-result-actions .footer-btn {
  border: 0;
  cursor: pointer;
}

/* =========================
   AI 폼 모바일 최적화
   ========================= */

@media (max-width: 860px) {
  .ai-tool-form {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-field {
    margin-bottom: 16px;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    min-height: 46px;
    font-size: 15px;
    border-radius: 10px;
  }

  .form-field textarea {
    min-height: 110px;
  }

  .ai-result-box {
    padding: 18px;
    min-height: 160px;
  }
}

@media (max-width: 480px) {
  .ai-tool-form {
    padding: 20px 14px;
  }

  .form-field label {
    font-size: 14px;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 14px;
    padding: 11px 12px;
  }

  .ai-result-wrap h3 {
    font-size: 20px;
  }
}


/* =========================
   상단 헤더와 본문 사이 공백 제거
   ========================= */

/* 공유바가 헤더 아래에서 공간을 크게 만들지 않도록 조정 */
.top-share-bar {
  margin-top: 0;
}

/* 고정 헤더 높이만큼만 본문을 아래로 내림 */
main {
  padding-top: 0;
}

/* 공유바 다음에 오는 첫 번째 히어로 영역 공백 제거 */
.top-share-bar + .site-header + main,
.site-header + main {
  margin-top: 0;
}

/* AI 페이지 히어로 상단 여백 제거 */
.ai-page .info-hero,
.ai-tool-page .info-hero {
  margin-top: 0;
  padding-top: 56px;
}

/* 모바일에서 헤더 아래 과도한 공백 제거 */
@media (max-width: 860px) {
  main {
    padding-top: 0;
  }

  .top-share-bar {
    margin-top: 0;
  }

  .ai-page .info-hero,
  .ai-tool-page .info-hero {
    padding-top: 42px;
  }
}

@media (max-width: 640px) {
  main {
    padding-top: 0;
  }

  .top-share-bar {
    margin-top: 0;
  }

  .ai-page .info-hero,
  .ai-tool-page .info-hero {
    padding-top: 36px;
  }
}

/* =========================
   Mobile header / footer spacing fix
   ========================= */

@media (max-width: 640px) {
  /* 영문 카테고리와 헤더 하단 선 사이 간격 */
  .site-header {
    padding-bottom: 14px;
  }

  .header-inner {
    row-gap: 16px;
  }

  .nav-menu {
    margin-bottom: 6px;
    padding-bottom: 4px;
  }

  /* 1:1 상담 신청 영역과 푸터 사이 공백 축소 */
  .contact-section,
  .consulting-contact,
  .inquiry-section,
  .info-section:last-of-type {
    padding-bottom: 28px;
    margin-bottom: 0;
  }

  main {
    padding-bottom: 0;
  }

  footer,
  .site-footer {
    margin-top: 0;
    padding-top: 22px;
    padding-bottom: 20px;
  }
}

@media (max-width: 640px) {
  .info-box:last-child,
  .contact-box,
  .consulting-form-wrap {
    margin-bottom: 0;
  }

  [data-include="/includes/footer.html"] {
    margin-top: 0;
  }
}


@media (max-width: 640px) {
  .site-header .nav-menu a {
    font-size: 13px;
  }
}

/* =========================================================
   FINAL HEADER / FOOTER OVERRIDE
   - 카테고리 사이 | 제거
   - 모바일 영문 메뉴 한 줄 유지
   - 메뉴 간격 확보
   - 헤더 하단 여백 정리
   - 상담 영역과 푸터 사이 공백 축소
   ========================================================= */

/* 1) 전체 헤더 메뉴의 | 구분선 제거 */
.site-header .nav-menu a::before,
.site-header .nav-menu a::after,
.site-header .nav-menu a:not(:last-child)::after {
  content: none !important;
  display: none !important;
}

.site-header .nav-menu a {
  border-left: 0 !important;
  border-right: 0 !important;
}

/* 2) 데스크톱 메뉴 간격 보정 */
@media (min-width: 861px) {
  .site-header .nav-menu {
    gap: 10px !important;
  }

  .site-header .nav-menu a {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* 3) 태블릿 이하: 헤더 구조 정리 */
@media (max-width: 860px) {
  .site-header {
    padding-bottom: 0 !important;
  }

  .site-header .header-inner {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "logo language"
      "nav nav" !important;
    align-items: center !important;
    row-gap: 8px !important;
    column-gap: 10px !important;
    min-height: auto !important;
    padding: 10px 12px 12px !important;
  }

  .site-header .logo {
    grid-area: logo !important;
    justify-self: start !important;
    text-align: left !important;
    min-height: 36px !important;
    margin: 0 !important;
  }

  .site-header .language-switch {
    grid-area: language !important;
    justify-self: end !important;
    margin: 0 !important;
  }

  .site-header .nav-menu {
    grid-area: nav !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;

    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;

    gap: 16px !important;
    padding: 4px 2px 8px !important;
    margin: 0 !important;

    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .site-header .nav-menu::-webkit-scrollbar {
    display: none !important;
  }

  .site-header .nav-menu a {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-width: auto !important;
    min-height: 32px !important;

    margin: 0 !important;
    padding: 4px 0 !important;

    border-radius: 0 !important;
    background: transparent !important;

    font-size: 13px !important;
    line-height: 1.35 !important;
    letter-spacing: -0.04em !important;
    text-align: center !important;
    white-space: nowrap !important;

    overflow: visible !important;
    text-overflow: clip !important;
  }

  .site-header .nav-menu a.active {
    color: #fff2b8 !important;
    font-weight: 950 !important;
  }

  .site-header .nav-menu a:hover {
    color: #fff2b8 !important;
  }
}

/* 4) 작은 모바일: 메뉴 간격과 글자 크기 조정 */
@media (max-width: 640px) {
  .site-header .header-inner {
    padding: 9px 12px 10px !important;
    row-gap: 7px !important;
  }

  .site-header .logo {
    font-size: 18px !important;
  }

  .site-header .nav-menu {
    gap: 14px !important;
    padding: 3px 2px 8px !important;
  }

  .site-header .nav-menu a {
    font-size: 12.8px !important;
    letter-spacing: -0.05em !important;
  }

  main {
    padding-bottom: 0 !important;
  }

  .contact-section,
  .consulting-contact,
  .inquiry-section,
  .info-section:last-of-type {
    padding-bottom: 24px !important;
    margin-bottom: 0 !important;
  }

  .info-section:last-of-type .info-box,
  .contact-box,
  .consulting-form-wrap {
    margin-bottom: 0 !important;
  }

  [data-include="/includes/footer.html"] {
    margin-top: 0 !important;
  }

  footer,
  .site-footer {
    margin-top: 0 !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
}

/* 5) 360px 이하 초소형 화면 */
@media (max-width: 360px) {
  .site-header .nav-menu {
    gap: 12px !important;
  }

  .site-header .nav-menu a {
    font-size: 12px !important;
    letter-spacing: -0.06em !important;
  }
}


/* =========================
   Book Detail Page
   ========================= */

.book-detail-box {
  padding: 32px;
}

.book-detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
}

.book-detail-cover {
  width: 100%;
  max-width: 260px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.book-detail-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.book-detail-info h2 {
  margin: 0 0 22px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--gray-900);
}

.book-detail-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--gray-200);
}

.book-detail-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--gray-200);
}

.book-detail-list dt {
  font-size: 14px;
  font-weight: 900;
  color: var(--gray-600);
}

.book-detail-list dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--gray-900);
}

.detail-actions {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Books list cover */
.book-cover {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
}

.book-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.book-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.book-meta {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
  line-height: 1.5;
}

.book-desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-700);
}

.book-actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 768px) {
  .book-detail-box {
    padding: 22px;
  }

  .book-detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .book-detail-cover {
    max-width: 220px;
    margin: 0 auto;
  }

  .book-detail-info h2 {
    font-size: 24px;
  }

  .book-detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }

  .book-detail-list dt {
    font-size: 13px;
  }

  .book-detail-list dd {
    font-size: 14px;
  }

  .detail-actions,
  .book-actions {
    flex-direction: column;
  }

  .detail-actions .footer-btn,
  .book-actions .footer-btn {
    width: 100%;
  }
}




/* Simple nav include final override */
.header-inner > [data-include="/includes/nav-menu.html"],
.header-inner > [data-include="/includes/nav-menu-en.html"] {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-header .nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: visible !important;
}

.site-header .nav-menu a {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-inner > [data-include="/includes/nav-menu.html"],
  .header-inner > [data-include="/includes/nav-menu-en.html"] {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
  }

  .site-header .nav-menu {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    overflow-x: visible !important;
  }

  .site-header .nav-menu a {
    padding: 8px 0;
    font-size: 14px;
  }
}


/* =========================
   English Mobile Nav - Full Width 3 Columns
   ========================= */

@media (max-width: 768px) {
  html[lang="en"] .header-inner {
    width: 100% !important;
    max-width: none !important;
    flex-wrap: wrap !important;
  }

  html[lang="en"] .header-inner > [data-include="/includes/nav-menu-en.html"] {
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 100% !important;
    order: 3 !important;
    display: block !important;
  }

  html[lang="en"] .nav-menu {
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  html[lang="en"] .nav-menu a {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 4px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    font-size: 11.5px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 768px) {
  html[lang="en"] .site-header .header-inner {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  html[lang="en"] .site-header .nav-menu {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* =========================================================
   FINAL SAFE MOBILE NAV PATCH
   - 기존 CSS 삭제 없이 맨 마지막에만 추가
   - 한국어/영문 메뉴 모바일 3열 x 2행
   - 가로 스크롤 제거
   - include wrapper 대응
   ========================================================= */

@media (max-width: 860px) {
  .site-header .header-inner {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "logo language"
      "nav nav" !important;
    width: 100% !important;
    max-width: none !important;
    min-height: auto !important;
    align-items: center !important;
    gap: 8px 10px !important;
    padding: 10px 12px 12px !important;
    box-sizing: border-box !important;
  }

  .site-header .logo {
    grid-area: logo !important;
    justify-self: start !important;
    min-width: 0 !important;
  }

  .site-header .language-switch {
    grid-area: language !important;
    justify-self: end !important;
  }

  .site-header .header-inner > [data-include="/includes/nav-menu.html"],
  .site-header .header-inner > [data-include="/includes/nav-menu-en.html"],
  .site-header .header-inner > div:has(.nav-menu) {
    grid-area: nav !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .site-header .nav-menu {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 4px 0 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }

  .site-header .nav-menu a {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: initial !important;
    box-sizing: border-box !important;
    padding: 8px 4px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.04em !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .site-header .nav-menu a::before,
  .site-header .nav-menu a::after,
  .site-header .nav-menu a:not(:last-child)::after {
    content: none !important;
    display: none !important;
  }

  html[lang="en"] .site-header .nav-menu a {
    font-size: 11px !important;
    line-height: 1.15 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 420px) {
  .site-header .nav-menu {
    gap: 6px !important;
  }

  .site-header .nav-menu a {
    font-size: 11.5px !important;
    padding: 7px 3px !important;
  }

  html[lang="en"] .site-header .nav-menu a {
    font-size: 10.5px !important;
  }
}


/* =========================================================
   English Mobile Header Spacing Fix
   - 영문 모바일 메뉴 2줄 높이만큼 본문 시작 위치 보정
   ========================================================= */

@media (max-width: 860px) {
  html[lang="en"] .info-hero {
    padding-top: 100px !important;
  }

  html[lang="en"] .ai-page .info-hero,
  html[lang="en"] .ai-tool-page .info-hero {
    padding-top: 100px !important;
  }
}

@media (max-width: 640px) {
  html[lang="en"] .info-hero {
    padding-top: 100px !important;
  }

  html[lang="en"] .ai-page .info-hero,
  html[lang="en"] .ai-tool-page .info-hero {
    padding-top: 100px !important;
  }
}

@media (max-width: 420px) {
  html[lang="en"] .info-hero {
    padding-top: 150px !important;
  }

  html[lang="en"] .ai-page .info-hero,
  html[lang="en"] .ai-tool-page .info-hero {
    padding-top: 150px !important;
  }
}
/* AI tool partial-input and sample controls */
.ai-partial-notice {
  margin: 18px 0 22px;
  padding: 14px 16px;
  border: 1px solid rgba(88, 64, 160, 0.22);
  border-radius: 14px;
  background: rgba(88, 64, 160, 0.06);
  color: #333;
  line-height: 1.65;
  font-size: 0.95rem;
}

.ai-sample-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 16px;
}

.ai-tool-form [data-ai-optional="true"]:invalid {
  box-shadow: none;
}

/* AI review result reliability and save notice */
.ai-save-notice {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.6;
}

.ai-result-box::selection {
  background: rgba(109, 40, 217, 0.18);
}

.ai-result-box {
  border-left: 5px solid #6d28d9;
}

.ai-result-actions .footer-btn,
.ai-sample-actions .footer-btn {
  min-height: 42px;
}

@media (max-width: 520px) {
  .ai-result-actions .footer-btn,
  .ai-sample-actions .footer-btn {
    width: 100%;
    justify-content: center;
  }
}
