/* ==========================================================================
   Career > 인사제도 (Figma 1:1471) — page body only
   Hero/stage: sp-common.css + sp-hero.js.
   This file: 직급체계 1:1533 · 평가제도 1:1547 · 보상제도 1:1565 · 인재개발 1:1579 ·
   채용절차 1:1605 · 복리후생 1:1623 · CTA 1:1659
   ========================================================================== */

/* style.css `section:not(.hero)… > *` (0,3,1) caps direct section children at 1440px + 40px gutter.
   Undo it so .sp-container keeps the 1600 / 160px-gutter frame of the design. */
.sp-page.benefits-page section:not(.hero):not(.hero-slider-container):not(.c-hero) > .sp-container {
  width: min(1600px, 100% - 2 * clamp(16px, 8.333vw, 160px));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
.sp-page.benefits-page section:not(.hero):not(.hero-slider-container):not(.c-hero) > .bnf-cta-bg {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}
/* Box background of the stage (sp-common's var resolves relative to its own file). */
.sp-page.benefits-page .sp-stage::before { background-image: url('../../img/career/benefits/hero.jpg'); }

/* ---------- Section shell ---------- */
.bnf-sec {
  padding: 40px 0 clamp(56px, 4.167vw, 80px);
  background: #f8f8f8;
}
.bnf-sec--first { padding-top: clamp(64px, 6.25vw, 120px); }
.bnf-sec--last { padding-bottom: clamp(64px, 6.25vw, 120px); }
.bnf-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 2.083vw, 40px);
}

/* ---------- Heading (eyebrow + title + desc) ---------- */
.bnf-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.bnf-head-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.bnf-head--left,
.bnf-head--left .bnf-head-top { align-items: flex-start; text-align: left; }
.bnf-title {
  font-weight: 600;
  font-size: clamp(30px, 2.917vw, 56px);
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: #111;
  word-break: keep-all;
}
.bnf-desc {
  font-weight: 500;
  font-size: clamp(16px, 1.042vw, 20px);
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: #333;
  word-break: keep-all;
}

/* ---------- Photo band (1600 x 400) ---------- */
.bnf-photo {
  width: 100%;
  aspect-ratio: 4 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
  background: #e5e7eb;
}

/* ---------- Card grid ---------- */
.bnf-grid {
  display: grid;
  gap: 24px 32px;
  list-style: none;
}
.bnf-grid--1 { grid-template-columns: minmax(0, 1fr); }
.bnf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bnf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bnf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bnf-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding: 32px;
  border: 1px solid #ebedf1;
  border-radius: 20px;
  background: #fff;
}
.bnf-card--grade { min-height: 176px; }
.bnf-card--tall { min-height: 260px; }
.bnf-card--welfare { min-height: 240px; }
.bnf-card-label {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sp-navy);
}
.bnf-card-title {
  font-weight: 600;
  font-size: clamp(20px, 1.25vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #111;
  word-break: keep-all;
}
.bnf-card-body {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #666;
  word-break: keep-all;
}
.bnf-steps .bnf-card-body { min-height: 3.2em; }
.bnf-list {
  list-style: none;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: #666;
  word-break: keep-all;
}
.bnf-list li {
  position: relative;
  padding-left: 24px;
}
.bnf-list li::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0.8em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- CTA (1:1659) ---------- */
.bnf-cta {
  position: relative;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.bnf-cta-bg {
  position: absolute;
  inset: -40px;
  z-index: -1;
  background: #1a1f2a url('../../img/career/jobs/cta.jpg') center / cover no-repeat;
  filter: blur(21px);
}
.bnf-cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.bnf-cta-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  box-sizing: border-box;
  min-height: clamp(460px, 36.302vw, 697px);
  padding: clamp(64px, 6.25vw, 120px) 0 80px;
}
.bnf-cta .bnf-title,
.bnf-cta .bnf-desc { color: #fff; }
.bnf-cta-links {
  display: flex;
  align-self: flex-end;
  gap: 20px;
}
.bnf-cta-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: clamp(160px, 13.542vw, 260px);
  height: clamp(124px, 8.333vw, 160px);
  padding: 26px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: clamp(16px, 1.042vw, 20px);
  line-height: 1.3;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bnf-cta-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.bnf-cta-link--primary { background: var(--sp-navy); color: #fff; }
.bnf-cta-link--primary:hover { color: #fff; }
.bnf-cta-link--light { background: #ebedf1; color: var(--sp-navy); }
.bnf-cta-link--light:hover { color: var(--sp-navy); }
.bnf-ico {
  position: relative;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
}
.bnf-ico img {
  position: absolute;
  width: auto;
  max-width: none;
}
.bnf-ico--hiring .bnf-ico-a { inset: 5.15% 1.48% 5.3% 1.36%; width: 97.16%; height: 89.55%; }
.bnf-ico--hiring .bnf-ico-b { inset: 24.51% 31.58% 32.84% 25.78%; width: 42.64%; height: 42.65%; }
.bnf-ico--briefcase .bnf-ico-a { inset: 8.33% 0; width: 100%; height: 83.34%; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .bnf-grid--3,
  .bnf-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bnf-card--grade,
  .bnf-card--tall,
  .bnf-card--welfare { min-height: 0; }
}
@media (max-width: 768px) {
  .bnf-grid--2,
  .bnf-grid--3,
  .bnf-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .bnf-grid { gap: 16px; }
  .bnf-card { padding: 24px; gap: 12px; }
  .bnf-photo { aspect-ratio: 2 / 1; border-radius: 14px; }
  .bnf-steps .bnf-card-body { min-height: 0; }
  .bnf-cta-links { align-self: stretch; }
  .bnf-cta-link { flex: 1 1 0; width: auto; }
}
@media (max-width: 600px) {
  .bnf-cta-inner { padding-bottom: 56px; }
  .bnf-cta-links { gap: 12px; }
  .bnf-cta-link { padding: 20px 12px; }
  .bnf-ico { width: 40px; height: 40px; }
}
