/* ============================================================================
   Mynavi TechTus Vietnam — v2 careers page styles
   Ported from 05-mockups/v2/vi/careers.html <style> (page markup; the shared
   hero skeleton/collage lives in components.css).
   Token-only: colours/sizes/spacing/radius/duration use design-system tokens.
   Raw values allowed: rgba() overlays + structural dimensions with no token.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. WHY JOIN US
   --------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.why-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-xl);
  clip-path: polygon(0 0, calc(100% - 64px) 0, 100% 64px, 100% 100%, 0 100%);
}
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.why-rows { border-top: 1px solid var(--c-ink); }
.why-row {
  padding: var(--sp-7) 0 var(--sp-6);
  border-bottom: 1px solid var(--c-line-strong);
}
.why-num {
  font-size: 40px;
  font-weight: var(--fw-light);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-none);
  color: var(--c-muted);
}
.why-row h3 {
  margin: var(--sp-4) 0 10px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-normal);
}
.why-row p { margin: 0; font-size: var(--fs-md); line-height: 1.9; color: var(--c-ink-3); max-width: 60ch; }
@media (min-width: 900px) {
  .why-row:nth-of-type(1) { padding-left: 0; }
  .why-row:nth-of-type(2) { padding-left: var(--sp-14); }
  .why-row:nth-of-type(3) { padding-left: var(--sp-28); }
}

/* ---------------------------------------------------------------------------
   2. LIFE & EVENTS
   --------------------------------------------------------------------------- */
.ev-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.ev-item { display: block; margin: 0; }
.ev-media { position: relative; overflow: hidden; border-radius: var(--r-xl); aspect-ratio: 4 / 3; }
.ev-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-5) var(--ease); }
.ev-item:hover { opacity: 1; }
.ev-item:hover .ev-media img { transform: scale(1.05); }
.ev-date {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: var(--fw-light);
  letter-spacing: var(--ls-tighter);
  line-height: var(--lh-none);
  color: var(--c-ink);
}
.ev-date span {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow-lg);
  color: var(--c-cyan);
}
.ev-item h3 {
  margin: var(--sp-3) 0 var(--sp-2);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-normal);
}
.ev-item p { margin: 0; font-size: var(--fs-base); line-height: var(--lh-relaxed); color: var(--c-ink-3); }
@media (min-width: 768px) {
  .ev-item { position: sticky; top: 104px; }
  .ev-item:nth-child(2) { margin-top: 100px; }
  .ev-item:nth-child(3) { margin-top: 200px; }
}

/* full-bleed statement band */
.life-band {
  position: relative;
  margin-top: clamp(56px, 8vw, 112px);
  min-height: clamp(280px, 42vw, 460px);
  overflow: hidden;
  border-radius: var(--r-2xl);
}
.life-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.life-band-inner {
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  bottom: clamp(20px, 4vw, 56px);
  z-index: 1;
  max-width: 480px;
  padding: clamp(16px, 2.2vw, 28px);
  background: rgba(255, 255, 255, .94);
  border-radius: var(--r-xl);
  clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 48px, 100% 100%, 0 100%);
}
.life-band-inner .k {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow-lg);
  color: var(--c-cyan);
}
.life-band-inner p {
  margin: var(--sp-3) 0 0;
  font-size: clamp(17px, 1.9vw, 25px);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--c-ink);
}
@media (max-width: 1024px) {
  .life-band-inner { max-width: 340px; }
}

/* activity list */
.act-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--c-ink);
}
.act-row {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  border-bottom: var(--border-hairline);
}
.act-row .no { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-cyan); width: var(--sp-8); flex: none; }
.act-row .nm { font-size: var(--fs-md); font-weight: var(--fw-medium); }
.act-row .tg { margin-left: auto; font-size: var(--fs-xs); color: var(--c-ink-4); white-space: nowrap; }
@media (max-width: 768px) {
  .act-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------------------
   3. OPEN POSITIONS
   --------------------------------------------------------------------------- */
.job-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: var(--sp-7) var(--sp-2);
  border-top: 1px solid var(--c-line-strong);
  transition: background var(--dur-2) var(--ease), padding var(--dur-2) var(--ease);
}
.job-row:last-of-type { border-bottom: 1px solid var(--c-line-strong); }
.job-row:hover { background: var(--c-cyan-wash); padding-left: var(--sp-5); opacity: 1; }
.job-idx { font-size: var(--fs-xl); font-weight: var(--fw-light); color: var(--c-muted); letter-spacing: var(--ls-normal); }
.job-row h3 {
  margin: 0;
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-normal);
  line-height: 1.4;
}
.job-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.job-meta span {
  border: var(--border-strong);
  border-radius: var(--r-pill);
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--c-ink-3);
}
.job-apply {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-cyan);
  white-space: nowrap;
}
.job-note { text-align: center; margin: var(--sp-5) 0 0; font-size: var(--fs-xs); color: var(--c-ink-4); }
@media (max-width: 768px) {
  .job-row { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-6) var(--sp-1); }
  .job-idx { display: none; }
}

/* ---------------------------------------------------------------------------
   4. STORIES
   --------------------------------------------------------------------------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  align-items: stretch;
}
.story-item {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-ink);
  padding-top: var(--sp-7);
}
.story-tag {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow-lg);
  color: var(--c-cyan);
}
.story-item blockquote {
  margin: var(--sp-5) 0 0;
  font-size: clamp(16px, 1.55vw, 19px);
  font-weight: var(--fw-regular);
  line-height: 1.8;
  letter-spacing: var(--ls-normal);
  color: var(--c-ink);
}
.story-who { display: flex; align-items: center; gap: var(--sp-4); margin-top: auto; padding-top: var(--sp-7); }
.story-who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--c-surface-2); }
.story-who b { display: block; font-size: var(--fs-md); font-weight: var(--fw-semibold); letter-spacing: var(--ls-normal); }
.story-who span { font-size: var(--fs-sm); color: var(--c-ink-4); }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------------------
   5. RESPONSIVE (900 / 768)
   --------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-9); }
  .why-media { max-width: 360px; }
  .why-row { padding-left: 0; }
}
@media (max-width: 768px) {
  .ev-grid { grid-template-columns: minmax(0, 1fr); }
  .ev-item:nth-child(2),
  .ev-item:nth-child(3) { margin-top: 0; }
}

/* ---------------------------------------------------------------------------
   6. APPLY PANEL HEAD
   Mockup stacks eyebrow → title → lead (left-aligned), unlike the default
   side-by-side .section-head.
   --------------------------------------------------------------------------- */
.section-head--stack { display: block; }
.section-head--stack .section-head__lead {
  flex: none;
  max-width: 660px;
  margin-top: var(--sp-4);
}
