/* ── Job Detail Page ── */

/* Page Hero */
.job-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.job-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.job-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0.3) 60%, transparent 100%);
  z-index: -1;
}

.job-hero__inner {
  padding: 80px 0 56px;
  color: #fff;
}

.job-hero__number {
  font-family: var(--font-en);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.15;
  margin-bottom: -12px;
}

.job-hero__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.job-hero__title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.job-hero__lead {
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 20px 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb__sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* ── Section: About ── */
.job-about {
  padding: 80px 0;
}

.job-about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.job-about__text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 24px;
  line-height: 1.5;
}

.job-about__text p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 2;
}

.job-about__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.job-about__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Section: Features (numbered items) ── */
.job-features {
  padding: 80px 0;
}

.job-features__header {
  text-align: center;
  margin-bottom: 56px;
}

.job-features__list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.job-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.job-feature:nth-child(even) {
  direction: rtl;
}

.job-feature:nth-child(even) > * {
  direction: ltr;
}

.job-feature__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.job-feature__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.job-feature__body {}

.job-feature__number {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 8px;
}

.job-feature__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 16px;
  line-height: 1.5;
}

.job-feature__desc {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 2;
}

/* ── Section: Career Path ── */
.job-career {
  padding: 80px 0;
}

.job-career__card {
  background: #fff;
  border-radius: var(--radius-xl, 28px);
  padding: 64px 48px 48px;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 12px 48px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.job-career__header {
  text-align: center;
  margin-bottom: 56px;
}

.career-path {
  display: flex;
  align-items: stretch;
  gap: 16px;
  max-width: 100%;
  margin: 0 auto;
}

.career-path__step {
  flex: 1;
  position: relative;
  background: var(--color-bg-soft, #f8fafc);
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Animation: start hidden */
  opacity: 0;
  transform: translateY(30px) scale(0.92);
}

/* Staggered reveal via .is-animated class */
.career-path.is-animated .career-path__step:nth-child(1) {
  animation: stepReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
}
.career-path.is-animated .career-path__step:nth-child(2) {
  animation: stepReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s forwards;
}
.career-path.is-animated .career-path__step:nth-child(3) {
  animation: stepReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s forwards;
}
.career-path.is-animated .career-path__step:nth-child(4) {
  animation: stepReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.85s forwards;
}

@keyframes stepReveal {
  0%   { opacity: 0; transform: translateY(30px) scale(0.92); }
  60%  { opacity: 1; transform: translateY(-6px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.career-path__step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

/* Arrow connector between steps */
.career-path__step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid var(--color-primary);
  z-index: 2;
  opacity: 0;
  transform: translateY(-50%) translateX(-8px);
}

/* Arrows animate in after their step */
.career-path.is-animated .career-path__step:nth-child(1)::after {
  animation: arrowShoot 0.35s ease-out 0.55s forwards;
}
.career-path.is-animated .career-path__step:nth-child(2)::after {
  animation: arrowShoot 0.35s ease-out 0.8s forwards;
}
.career-path.is-animated .career-path__step:nth-child(3)::after {
  animation: arrowShoot 0.35s ease-out 1.05s forwards;
}

@keyframes arrowShoot {
  0%   { opacity: 0; transform: translateY(-50%) translateX(-8px); }
  50%  { opacity: 0.6; transform: translateY(-50%) translateX(3px); }
  100% { opacity: 0.5; transform: translateY(-50%) translateX(0); }
}

/* Progress line that connects steps */
.career-path__progress {
  position: absolute;
  bottom: -16px;
  left: 10%;
  width: 80%;
  height: 3px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.career-path__progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary), #6366f1, #8b5cf6, #06b6d4);
  border-radius: 2px;
}

.career-path.is-animated .career-path__progress-fill {
  animation: progressGrow 1.2s ease-out 0.1s forwards;
}

@keyframes progressGrow {
  0%   { width: 0; }
  100% { width: 100%; }
}

.career-path__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), #3b82f6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
}

.career-path__step:nth-child(2) .career-path__icon {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.career-path__step:nth-child(3) .career-path__icon {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.career-path__step:nth-child(4) .career-path__icon {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
}

/* Icon pulse on reveal */
.career-path.is-animated .career-path__step:nth-child(1) .career-path__icon {
  animation: iconPop 0.4s ease-out 0.4s both;
}
.career-path.is-animated .career-path__step:nth-child(2) .career-path__icon {
  animation: iconPop 0.4s ease-out 0.65s both;
}
.career-path.is-animated .career-path__step:nth-child(3) .career-path__icon {
  animation: iconPop 0.4s ease-out 0.9s both;
}
.career-path.is-animated .career-path__step:nth-child(4) .career-path__icon {
  animation: iconPop 0.4s ease-out 1.15s both;
}

@keyframes iconPop {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50%  { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.career-path__year {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.career-path__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 8px;
  line-height: 1.4;
}

.career-path__desc {
  font-size: 0.78rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.career-path__note {
  text-align: center;
  margin-top: 40px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .career-path {
    flex-direction: column;
    gap: 12px;
  }

  .career-path__step {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 20px;
    padding: 20px 24px;
  }

  .career-path__step:not(:last-child)::after {
    border-left: none;
    border-top: 8px solid var(--color-primary);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: none;
    right: auto;
    left: 50%;
    top: auto;
    bottom: -10px;
    transform: translateX(-50%);
  }

  .career-path.is-animated .career-path__step:not(:last-child)::after {
    animation-name: arrowShootDown;
  }

  @keyframes arrowShootDown {
    0%   { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    50%  { opacity: 0.6; transform: translateX(-50%) translateY(3px); }
    100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  }

  .career-path__icon {
    flex-shrink: 0;
    margin: 0;
  }

  .career-path__progress {
    display: none;
  }
}

/* ── Section: Requirements ── */
.job-requirements {
  padding: 80px 0;
  background: #f5f7fa;
}

.job-requirements__header {
  text-align: center;
  margin-bottom: 48px;
}

.job-req-table {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
}

.job-req-table th,
.job-req-table td {
  padding: 20px 24px;
  font-size: 0.92rem;
  line-height: 1.8;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.job-req-table th {
  width: 160px;
  font-weight: 700;
  color: var(--color-black);
  background: var(--color-bg-soft);
}

.job-req-table td {
  color: var(--color-black);
}

/* ── Section: Other Jobs Navigation ── */
.job-others {
  padding: 80px 0;
  background: var(--color-bg-soft);
}

.job-others__header {
  text-align: center;
  margin-bottom: 40px;
}

.job-others__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.job-others__card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-others__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.job-others__card-num {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.25;
  flex-shrink: 0;
}

.job-others__card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-black);
}

.job-others__card-arrow {
  margin-left: auto;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.job-others__card:hover .job-others__card-arrow {
  transform: translateX(4px);
  color: var(--color-primary);
}

/* ── CTA (reuse from work.css) ── */

/* ── Responsive ── */
@media (max-width: 900px) {
  .job-hero {
    min-height: 360px;
  }

  .job-hero__number {
    font-size: 3rem;
  }

  .job-hero__title {
    font-size: 2rem;
  }

  .job-about__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .job-feature {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .job-feature:nth-child(even) {
    direction: ltr;
  }

  .job-others__grid {
    grid-template-columns: 1fr;
  }

  .job-req-table th {
    width: 120px;
  }
}

@media (max-width: 768px) {
  .job-req-table,
  .job-req-table thead,
  .job-req-table tbody,
  .job-req-table tr,
  .job-req-table th,
  .job-req-table td {
    display: block;
    width: 100%;
  }

  .job-req-table th {
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (max-width: 480px) {
  .job-hero {
    padding: 60px 0 40px;
  }

  .job-hero__title {
    font-size: 1.6rem;
  }

  .job-hero__number {
    font-size: 2.5rem;
  }

  .job-about__text h2 {
    font-size: 1.4rem;
  }

  .job-about,
  .job-features,
  .job-career,
  .job-requirements,
  .job-others {
    padding: 40px 0;
  }

  .job-feature__title {
    font-size: 1.1rem;
  }

  .job-req-table th,
  .job-req-table td {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }

  .job-req-table th {
    border-bottom: none;
    padding-bottom: 0;
  }

  .job-others__card {
    padding: 16px;
  }

  .work-timeline-item__photo {
    width: 60px;
    height: 60px;
  }
}
