/* ============================================================
   Career Page Styles
   ============================================================ */

/* ── Page Hero (reused across interior pages) ─────────────── */
.page-hero {
  position: relative;
  background: var(--grad-hero);
  padding: 160px 0 96px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 86, 219, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 86, 219, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(
    ellipse 70% 80% at 30% 50%,
    black 30%,
    transparent 100%
  );
}
.page-hero-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a56db 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.3;
  top: -200px;
  right: -100px;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.page-hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 28px;
}
.career-hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.career-hero-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Why Join ─────────────────────────────────────────────── */
.why-join {
  padding: var(--section-py) 0;
  background: var(--bg-light);
}
.perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.perk-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: all var(--transition);
}
.perk-card:hover {
  border-color: rgba(26, 86, 219, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.perk-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(26, 86, 219, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}
.perk-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.perk-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Jobs Section ─────────────────────────────────────────── */
.jobs-section {
  padding: var(--section-py) 0;
  background: var(--white);
}
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Job Card ─────────────────────────────────────────────── */
.job-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.job-card:hover {
  border-color: rgba(26, 86, 219, 0.3);
  box-shadow: var(--shadow-md);
}
.job-card:has(.job-details:not([hidden])) {
  border-color: var(--primary);
}

.job-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  cursor: pointer;
  user-select: none;
}
.job-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.job-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(26, 86, 219, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.job-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.job-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.job-tags span {
  font-size: 12px;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-section);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.job-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: all var(--transition);
}
.job-toggle:hover {
  background: rgba(26, 86, 219, 0.08);
  color: var(--primary);
}
.job-toggle.open {
  background: var(--grad-brand);
  color: var(--white);
}
.job-toggle.open svg {
  transform: rotate(180deg);
}
.job-toggle svg {
  transition: transform var(--transition);
}

/* ── Job Details ──────────────────────────────────────────── */
.job-details {
  padding: 0 32px 32px;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.3s ease forwards;
}
.job-summary {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 24px 0 32px;
  padding: 20px 24px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}
.job-section {
  margin-bottom: 28px;
}
.job-section:first-child {
  margin-top: 28px;
}
.job-section h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.job-section ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.job-section li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}
.job-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
}

.job-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.job-tech span {
  font-size: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  background: rgba(26, 86, 219, 0.08);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(26, 86, 219, 0.2);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .perks-grid {
    grid-template-columns: 1fr;
  }
  .job-header {
    padding: 20px;
    flex-wrap: wrap;
    gap: 16px;
  }
  .job-meta {
    gap: 12px;
  }
  .job-details {
    padding: 0 20px 24px;
  }
  .open-app-inner {
    padding: 36px 28px;
    flex-direction: column;
  }
  .career-hero-meta {
    flex-direction: column;
    gap: 12px;
  }
}
