/* career.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f3f5f9;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: #111;
}

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 20px;
}

.top-area {
  text-align: center;
  margin-bottom: 28px;
}

.top-area h1 {
  font-size: 54px;
  color: #173b72;
  font-weight: 900;
  margin-bottom: 8px;
}

.top-area p {
  font-size: 20px;
  color: #6b7280;
}

.form-box {
  background: #fff;
  border-radius: 24px;
  padding: 50px;
  margin-bottom: 36px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.input-group {
  margin-bottom: 22px;
}

.input-group label {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.input-group input {
  width: 100%;
  height: 70px;
  border-radius: 16px;
  border: 2px solid #d1d5db;
  padding: 0 22px;
  font-size: 24px;
}

button {
  width: 100%;
  border: none;
  border-radius: 18px;
  background: #173b72;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  padding: 22px 20px;
  cursor: pointer;
}

button:active {
  transform: scale(0.98);
  opacity: 0.75;
}

#message {
  margin-top: 16px;
  text-align: center;
  color: red;
  font-size: 18px;
}

/* =========================
   경력증명서 본문
========================= */

.preview-box {
  width: 100%;
}

.paper {
  width: 794px;
  min-height: 1123px;
  margin: 0 auto;
  background: #fff;
  padding: 72px 70px 62px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.issue-no {
  font-size: 13px;
  margin-bottom: 42px;
  color: #111;
}

h2 {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 16px;
  color: #000;
  margin-bottom: 44px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto 38px;
}

th,
td {
  border: 1px solid #222;
  padding: 14px 18px;
  height: 54px;
  font-size: 18px;
  vertical-align: middle;
}

th {
  width: 28%;
  background: #f3f4f6;
  text-align: center;
  font-weight: 800;
}

td {
  width: 72%;
  text-align: left;
}

.bottom-text {
  text-align: center;
  font-size: 18px;
  line-height: 1.7;
  margin-top: 34px;
}

#certToday {
  display: inline-block;
  margin-top: 20px;
  font-size: 18px;
}

.sign-area {
  margin-top: 46px;
  text-align: center;
  font-size: 17px;
  line-height: 1.7;
}

.ceo-line {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.ceo-name {
  font-size: 21px;
  font-weight: 700;
}

.stamp-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.print-btn-area {
  width: 794px;
  margin: 24px auto 0;
}

.print-btn {
  width: 100%;
  display: block;
  padding: 22px 20px;
  border: none;
  border-radius: 16px;
  background: #1f4678;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
}

/* =========================
   A4 인쇄 / PDF 1장 고정
========================= */

@page {
  size: A4;
  margin: 0;
}

@media print {
  html,
  body {
    width: 210mm;
    height: 297mm;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  .no-print,
  .print-btn-area,
  .form-box,
  .top-area {
    display: none !important;
  }

  .container {
    width: 210mm !important;
    height: 297mm !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .preview-box {
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .paper {
    width: 210mm !important;
    height: 297mm !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 18mm 20mm 12mm !important;
    box-shadow: none !important;
    overflow: hidden !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
  }

  .issue-no {
    font-size: 11px !important;
    margin-bottom: 18px !important;
  }

  h2 {
    font-size: 30px !important;
    letter-spacing: 14px !important;
    margin-bottom: 28px !important;
  }

  table {
    margin-bottom: 28px !important;
  }

  th,
  td {
    font-size: 15px !important;
    padding: 9px 13px !important;
    height: 40px !important;
  }

  .bottom-text {
    margin-top: 20px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  #certToday {
    margin-top: 18px !important;
    font-size: 16px !important;
  }

  .sign-area {
    margin-top: 34px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  .ceo-line {
    margin-top: 14px !important;
    gap: 12px !important;
  }

  .ceo-name {
    font-size: 18px !important;
  }

  .stamp-img {
    width: 58px !important;
    height: 58px !important;
  }
}