/* === Job Detail — Ultra-Modern Professional Theme (2025) ===
   Premium design with advanced animations and glassmorphism
   Save as: jobs/css/job_detail_modern.css
*/

/* ========== THEME TOKENS ========== */
:root {
  /* Brand */
  --primary: #010080;
  --primary-hover: #000066;
  --secondary: #2F55D4;
  --accent: #00d4ff;

  /* Text */
  --text-primary: #0a0e1a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  /* Surfaces */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;

  /* Borders & Shadows */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 24px rgba(1,0,128,0.15), 0 0 8px rgba(47,85,212,0.1);

  /* Motion */
  --transition: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Base */
body {
  color: var(--text-primary);
  background: var(--bg-secondary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'SF Pro Display', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== HERO ========== */
.job-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 380px;
  padding: 80px 0 60px;
  background: linear-gradient(90deg, #010080 50%, #0200ff 100%);
  border-bottom: 1px solid var(--border-light);
}

/* Enhanced overlay with mesh gradient effect */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle 600px at 15% 10%, rgba(0,212,255,0.06), transparent 50%),
    radial-gradient(circle 500px at 85% 15%, rgba(1,0,128,0.08), transparent 50%),
    radial-gradient(circle 400px at 50% 80%, rgba(47,85,212,0.04), transparent 60%);
  pointer-events: none;
  z-index: 1;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.8; }
  100% { opacity: 1; }
}

/* Content container */
.job-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Back button with glassmorphism */
.back-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  color: #ffffff;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.back-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.25);
  opacity: 0;
  transition: opacity var(--transition);
}
.back-button > * {
  position: relative;
  z-index: 1;
}
.back-button:hover::before {
  opacity: 1;
}
.back-button:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.2);
}

/* Hero main */
.hero-main {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 24px;
}

/* Logo with depth and glow */
.company-logo-hero {
  width: 130px;
  height: 130px;
  border-radius: 28px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  box-shadow: 
    var(--shadow-lg),
    inset 0 1px 0 rgba(255,255,255,0.8);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  transition: all var(--transition-slow);
}
.company-logo-hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(47,85,212,0.1), transparent 30%);
  animation: logoRotate 6s linear infinite;
  opacity: 0;
  transition: opacity var(--transition);
}
.company-logo-hero:hover::before {
  opacity: 1;
}
.company-logo-hero:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    var(--shadow-xl),
    var(--shadow-glow),
    inset 0 1px 0 rgba(255,255,255,0.9);
}
@keyframes logoRotate {
  100% { transform: rotate(360deg); }
}
.company-logo-hero img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
.logo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--primary);
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(1,0,128,0.15);
}

/* Hero text with animated gradient */
.hero-text .hero-title {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 4px 0 12px;
  color: #ffffff;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.25),
    0 0 6px rgba(255, 255, 255, 0.3);
  line-height: 1.15;
}

.hero-company {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: white;
  font-size: 1.05rem;
}
.hero-company .company-name { font-weight: 700; color: white; }
.hero-company .separator { opacity: .5; }
.hero-company .location i { margin-right: 5px; }

/* Enhanced badges with micro-interactions */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: .92rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.badge::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.badge:hover::before {
  width: 300px;
  height: 300px;
}
.badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.badge-type { 
  background: linear-gradient(135deg, #eef2ff, #e0e7ff); 
  color: #1e3a8a; 
  border-color: #c7d2fe;
  box-shadow: 0 2px 8px rgba(30,58,138,0.1);
}
.badge-arrangement { 
  background: linear-gradient(135deg, #ecfeff, #cffafe); 
  color: #155e75; 
  border-color: #a5f3fc;
  box-shadow: 0 2px 8px rgba(21,94,117,0.1);
}
.badge-level { 
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe); 
  color: #0c4a6e; 
  border-color: #bae6fd;
  box-shadow: 0 2px 8px rgba(12,74,110,0.1);
}
.badge-time i { margin-right: 4px; }

/* ========== MAIN LAYOUT ========== */
.job-detail-wrapper {
  width: 100%;
  background: var(--bg-secondary);
  display: flex;
  justify-content: center;
  padding: 48px 0;
}

.job-detail-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ========== QUICK STATS ========== */
.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
  margin-bottom: 32px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(248,250,252,0.6));
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.stat-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}
.stat-card:hover::before {
  transform: scaleX(1);
}
.stat-card:hover { 
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--primary);
  background: #fff;
}
.stat-icon {
  width: 52px; 
  height: 52px;
  display: grid; 
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  color: var(--primary);
  font-size: 1.4rem;
  transition: all var(--transition);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.8);
  flex-shrink: 0;
}
.stat-card:hover .stat-icon {
  transform: scale(1.15) rotate(5deg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.stat-content { line-height: 1.4; }
.stat-label { 
  font-size: .82rem; 
  text-transform: uppercase; 
  letter-spacing: .08em; 
  color: var(--text-muted);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}
.stat-value { 
  display: block; 
  font-weight: 800; 
  color: var(--text-primary);
  font-size: 1.2rem;
}

/* ========== SALARY HIGHLIGHT ========== */
.salary-highlight {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(1,0,128,0.03), rgba(47,85,212,0.04));
  border-radius: 24px;
  border: 2px solid #e0e7ff;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 
    0 8px 32px rgba(1,0,128,0.08),
    inset 0 1px 0 rgba(255,255,255,0.8);
  transition: all var(--transition-slow);
  margin-bottom: 32px;
}

.salary-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary),
    var(--accent),
    var(--secondary),
    transparent
  );
  animation: flowTrim 4s linear infinite;
}

@keyframes flowTrim {
  0%   { transform: translateX(-25%); }
  100% { transform: translateX(25%); }
}

.salary-highlight:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 48px rgba(1,0,128,0.12),
    inset 0 1px 0 rgba(255,255,255,1);
  border-color: #c7d2fe;
}

.salary-highlight .highlight-icon-wrapper {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  color: var(--primary);
  border-radius: 20px;
  width: 72px;
  height: 72px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  border: 1px solid #c7d2fe;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: all var(--transition);
}

.salary-highlight:hover .highlight-icon-wrapper {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: var(--shadow-md);
}

.salary-highlight .highlight-content {
  flex: 1;
}

.salary-highlight .highlight-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.salary-highlight .highlight-text {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* ========== BANNERS & CARDS ========== */
.highlight-banner {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
  padding: 28px;
  margin: 0 0 32px; 
  background: 
    linear-gradient(135deg, rgba(240,247,255,0.8), rgba(255,255,255,0.95)),
    radial-gradient(circle at top right, rgba(0,212,255,0.05), transparent 60%);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.highlight-icon-wrapper {
  width: 64px; 
  height: 64px; 
  border-radius: 18px;
  display: grid; 
  place-items: center;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  color: var(--primary);
  border: 1px solid #c7d2fe;
  font-size: 1.6rem;
  box-shadow: 
    var(--shadow-sm),
    inset 0 1px 0 rgba(255,255,255,0.5);
  transition: all var(--transition);
}
.highlight-banner:hover .highlight-icon-wrapper {
  transform: scale(1.05) rotate(-5deg);
}
.highlight-title { 
  margin: 0 0 8px; 
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--text-primary);
}
.highlight-text { 
  margin: 0; 
  color: var(--text-secondary);
  line-height: 1.6;
}

.content-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.content-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(1,0,128,0.1), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-slow);
}
.content-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}
.content-card:hover::after {
  opacity: 1;
}
.card-header {
  display: flex; 
  align-items: center; 
  gap: 16px;
  padding: 28px 28px 16px;
  border-bottom: 2px solid var(--bg-tertiary);
  margin-bottom: 4px;
}
.header-icon {
  width: 52px; 
  height: 52px; 
  border-radius: 16px;
  display: grid; 
  place-items: center;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  color: var(--primary);
  border: 1px solid var(--border-light);
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.content-card:hover .header-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.card-title {
  margin: 0;
  font-weight: 900;
  font-size: 1.25rem;
  position: relative;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.card-body { 
  padding: 20px 28px 28px; 
}

/* Prose */
.prose-content { 
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
}
.prose-content p { margin: 0 0 14px; }
.prose-content ul { padding-left: 1.2rem; margin: 0 0 14px; }
.prose-content li { margin: 6px 0; }

/* Highlights list with stagger animation */
.highlights-list { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: grid; 
  gap: 14px; 
}
.highlights-list li {
  display: flex; 
  gap: 14px; 
  align-items: flex-start;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(248,250,252,0.8), rgba(241,245,249,0.6));
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}
.highlights-list li:nth-child(1) { animation-delay: 0.05s; }
.highlights-list li:nth-child(2) { animation-delay: 0.1s; }
.highlights-list li:nth-child(3) { animation-delay: 0.15s; }
.highlights-list li:nth-child(4) { animation-delay: 0.2s; }
.highlights-list li:nth-child(5) { animation-delay: 0.25s; }
.highlights-list li:nth-child(n+6) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.highlights-list li:hover {
  background: linear-gradient(135deg, #fff, #f8fafc);
  border-color: var(--primary);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}
.bullet-icon { 
  line-height: 1; 
  color: var(--primary); 
  margin-top: 3px;
  font-size: 1.15rem;
  transition: transform var(--transition);
}
.highlights-list li:hover .bullet-icon {
  transform: scale(1.25);
}
.bullet-text { 
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.6;
  font-size: 1.02rem;
}

/* Skills with gradient and hover effects */
.skills-container { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 12px; 
}
.skill-pill {
  display: inline-flex; 
  align-items: center; 
  gap: 7px;
  padding: 12px 18px;
  font-size: .98rem; 
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  color: #1e3a8a; 
  border: 1px solid #c7d2fe;
  box-shadow: 0 2px 8px rgba(30,58,138,0.12);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.skill-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}
.skill-pill:hover::before {
  left: 100%;
}
.skill-pill:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-md);
  border-color: #818cf8;
}

/* Industry with modern card styling */
.industry-grid {
  display: grid; 
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.industry-pill {
  padding: 20px; 
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: linear-gradient(135deg, rgba(248,250,252,0.9), rgba(241,245,249,0.8));
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.industry-pill:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: #fff;
}
.industry-pill.primary { 
  border-color: #c7d2fe;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  box-shadow: 0 2px 8px rgba(30,58,138,0.1);
}
.industry-pill.primary:hover {
  box-shadow: var(--shadow-md), 0 4px 16px rgba(30,58,138,0.15);
}
.industry-pill .pill-label {
  display: block; 
  font-size: .78rem; 
  text-transform: uppercase; 
  letter-spacing: .08em; 
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.industry-pill .pill-value { 
  font-weight: 900; 
  color: var(--text-primary);
  font-size: 1.08rem;
}

/* ========== VIDEO ========== */
.video-wrapper {
  position: relative; 
  border-radius: 24px; 
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: linear-gradient(135deg, #000, #1a1a2e);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-slow);
}
.video-wrapper:hover {
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  transform: scale(1.01);
}
.video-thumb {
  position: relative; 
  cursor: pointer;
  aspect-ratio: 16/9; 
  display: block;
}
.video-thumb img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  opacity: .85; 
  transition: all var(--transition-slow); 
}
.video-thumb:hover img { 
  opacity: 1; 
  transform: scale(1.05); 
}
.play-button {
  position: absolute; 
  inset: 0; 
  display: grid; 
  place-items: center;
  background: radial-gradient(circle, rgba(0,0,0,0.3), transparent 70%);
  transition: all var(--transition);
}
.play-button i {
  font-size: 4rem; 
  line-height: 1; 
  color: #fff;
  padding: 20px 26px; 
  border-radius: 999px;
  background: rgba(1,0,128,0.7); 
  backdrop-filter: blur(8px);
  border: 3px solid rgba(255,255,255,0.4);
  box-shadow: 
    0 8px 32px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all var(--transition);
  position: relative;
}
.play-button i::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 1; 
  }
  50% { 
    transform: scale(1.1); 
    opacity: 0.5; 
  }
}
.video-thumb:hover .play-button i { 
  transform: scale(1.1); 
  background: rgba(1,0,128,0.9); 
  border-color: rgba(255,255,255,0.6);
  box-shadow: 
    0 12px 48px rgba(0,0,0,0.4),
    0 0 40px rgba(1,0,128,0.5),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.video-embed,
.video-iframe { 
  width: 100%; 
  aspect-ratio: 16/9; 
  border: 0; 
}
.video-chapters { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 10px; 
  margin-top: 12px; 
}
.chapter-link {
  display: inline-flex; 
  align-items: center; 
  gap: 7px;
  padding: 8px 14px; 
  border-radius: 12px; 
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.8); 
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
  font-weight: 700; 
  transition: all var(--transition);
  font-size: .9rem;
}
.chapter-link:hover { 
  color: #fff; 
  background: linear-gradient(135deg, var(--primary), var(--secondary)); 
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ========== PERKS ========== */
.perks-grid {
  display: grid; 
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.perk-item {
  display: flex; 
  gap: 16px; 
  align-items: start;
  padding: 22px; 
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,250,252,0.8));
  backdrop-filter: blur(8px);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.perk-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,212,255,0.08), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}
.perk-item:hover::before {
  opacity: 1;
  animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer {
  0% { transform: translate(0, 0); }
  50% { transform: translate(10%, 10%); }
  100% { transform: translate(0, 0); }
}
.perk-item:hover { 
  transform: translateY(-4px); 
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  background: #fff;
}
.perk-icon {
  width: 54px; 
  height: 54px; 
  border-radius: 16px;
  display: grid; 
  place-items: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  flex-shrink: 0;
}

/* Different colors for each perk icon */
.perk-item:nth-child(1) .perk-icon {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  border: 1px solid #93c5fd;
}
.perk-item:nth-child(2) .perk-icon {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
  border: 1px solid #fcd34d;
}
.perk-item:nth-child(3) .perk-icon {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #15803d;
  border: 1px solid #86efac;
}
.perk-item:nth-child(4) .perk-icon {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  color: #be185d;
  border: 1px solid #f9a8d4;
}
.perk-item:nth-child(5) .perk-icon {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #4338ca;
  border: 1px solid #a5b4fc;
}
.perk-item:nth-child(6) .perk-icon {
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  color: #c2410c;
  border: 1px solid #fb923c;
}
.perk-item:nth-child(7) .perk-icon {
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  color: #155e75;
  border: 1px solid #a5f3fc;
}
.perk-item:nth-child(8) .perk-icon {
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  color: #7e22ce;
  border: 1px solid #d8b4fe;
}
.perk-item:nth-child(9) .perk-icon {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  color: #b91c1c;
  border: 1px solid #f87171;
}
.perk-item:nth-child(10) .perk-icon {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.perk-item:hover .perk-icon {
  transform: scale(1.1) rotate(-10deg);
  box-shadow: var(--shadow-md);
}
.perk-content h4 { 
  margin: 2px 0 8px; 
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--text-primary);
}
.perk-content p { 
  margin: 0; 
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.98rem;
}

/* ========== PROCESS TIMELINE ========== */
.process-timeline { 
  display: grid; 
  gap: 18px; 
  position: relative;
  padding-left: 8px;
}
.process-timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 50px;
  bottom: 50px;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0.2;
  border-radius: 999px;
}
.process-step {
  display: grid; 
  grid-template-columns: 56px 1fr; 
  gap: 18px; 
  align-items: start;
  padding-bottom: 0;
  position: relative;
}
.step-marker {
  width: 56px; 
  height: 56px; 
  border-radius: 50%;
  display: grid; 
  place-items: center;
  color: #fff; 
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  position: relative;
  z-index: 2;
}

/* Different shades for each step - reversed order, darker step 4 */
.process-step:nth-child(1) .step-marker {
  background: linear-gradient(135deg, #7a9ff5, #8aafff);
  box-shadow: var(--shadow-md), 0 0 0 8px rgba(122,159,245,0.15);
}
.process-step:nth-child(2) .step-marker {
  background: linear-gradient(135deg, #5b7fe6, #6b8ff0);
  box-shadow: var(--shadow-md), 0 0 0 8px rgba(91,127,230,0.15);
}
.process-step:nth-child(3) .step-marker {
  background: linear-gradient(135deg, #2F55D4, #4169e8);
  box-shadow: var(--shadow-md), 0 0 0 8px rgba(47,85,212,0.15);
}
.process-step:nth-child(4) .step-marker {
  background: linear-gradient(135deg, #010080, #0200cc);
  box-shadow: var(--shadow-md), 0 0 0 8px rgba(1,0,128,0.15);
}
.process-step:nth-child(5) .step-marker {
  background: linear-gradient(135deg, #000066, #010080);
  box-shadow: var(--shadow-md), 0 0 0 8px rgba(0,0,102,0.15);
}

.process-step:hover .step-marker {
  transform: scale(1.15) rotate(360deg);
  box-shadow: 
    var(--shadow-lg),
    var(--shadow-glow),
    0 0 0 10px rgba(238,242,255,1);
}
.step-content {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,250,252,0.8));
  backdrop-filter: blur(8px);
  padding: 20px 24px;
  border-radius: 18px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.step-content:hover {
  background: #fff;
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}
.step-content h4 { 
  margin: 0 0 8px; 
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--text-primary);
}
.step-content p { 
  margin: 0; 
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.98rem;
}
/* ========== SIMILAR JOBS ========== */
.similar-jobs-grid {
  display: grid; 
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.similar-job-card {
  display: block; 
  text-decoration: none;
  padding: 22px; 
  border-radius: 22px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  color: inherit;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.similar-job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(1,0,128,0.03), transparent);
  transition: left 0.5s;
}
.similar-job-card:hover::before {
  left: 100%;
}
.similar-job-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.similar-job-header { 
  display: flex; 
  justify-content: space-between; 
  gap: 12px; 
  align-items: center; 
  margin-bottom: 10px; 
}
.similar-job-header h4 { 
  margin: 0; 
  font-weight: 900; 
  font-size: 1.1rem;
  color: var(--text-primary);
  transition: color var(--transition);
}
.similar-job-card:hover h4 {
  color: var(--primary);
}
.job-status-badge {
  padding: 6px 12px; 
  border-radius: 999px; 
  font-size: .75rem; 
  font-weight: 800;
  background: var(--bg-tertiary); 
  color: var(--text-secondary); 
  border: 1px solid var(--border);
  text-transform: uppercase; 
  letter-spacing: .08em;
  transition: all var(--transition);
  flex-shrink: 0;
}
.job-status-badge.open { 
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #065f46; 
  border-color: #a7f3d0;
  box-shadow: 0 2px 8px rgba(6,95,70,0.15);
}
.job-status-badge.closed { 
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #991b1b; 
  border-color: #fecaca;
  box-shadow: 0 2px 8px rgba(153,27,27,0.15);
}
.similar-job-card p { 
  margin: 10px 0; 
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 500;
  font-size: 0.96rem;
}
.similar-job-card i { 
  margin-right: 6px;
  opacity: 0.7;
}

/* ========== SIDEBAR ========== */
.job-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Apply card with premium styling */
.apply-card {
  padding: 28px; 
  border-radius: 28px;
  border: 1px solid var(--border-light);
  background: 
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95)),
    radial-gradient(circle at top right, rgba(1,0,128,0.03), transparent);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.apply-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  background-size: 200% 100%;
  animation: gradientMove 3s linear infinite;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.btn-apply {
  width: 100%; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 10px;
  padding: 18px 24px; 
  border-radius: 18px; 
  border: 1px solid transparent;
  font-weight: 900; 
  font-size: 1.08rem;
  text-decoration: none; 
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-apply::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn-apply:hover::before {
  width: 400px;
  height: 400px;
}
.btn-apply.primary { 
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; 
  box-shadow: 
    var(--shadow-md),
    0 4px 20px rgba(1,0,128,0.25);
}
.btn-apply.primary:hover { 
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    var(--shadow-xl),
    var(--shadow-glow);
}
.btn-apply.success { 
  background: linear-gradient(135deg, #16a34a, #059669);
  color: #fff; 
  box-shadow: 
    var(--shadow-md),
    0 4px 20px rgba(22,163,74,0.25);
}
.btn-apply.success:hover { 
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    var(--shadow-xl),
    0 8px 32px rgba(22,163,74,0.35);
}
.btn-apply.disabled { 
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  color: #6b7280; 
  cursor: not-allowed;
  box-shadow: var(--shadow-sm);
}
.apply-note { 
  margin: 14px 0 0; 
  color: var(--text-secondary); 
  text-align: center; 
  font-size: .96rem;
  font-weight: 600;
}
.apply-note.success { 
  color: #166534;
  font-weight: 700;
}
.apply-note.error { 
  color: #991b1b;
  font-weight: 700;
}

.external-apply {
  display: inline-flex; 
  gap: 8px; 
  align-items: center; 
  justify-content: center;
  margin-top: 14px; 
  width: 100%;
  padding: 14px 18px; 
  border-radius: 16px;
  border: 2px dashed var(--border);
  background: rgba(248,250,252,0.8);
  backdrop-filter: blur(8px);
  color: var(--text-secondary); 
  text-decoration: none; 
  font-weight: 800;
  transition: all var(--transition);
  position: relative;
}
.external-apply::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  opacity: 0;
  transition: opacity var(--transition);
}
.external-apply > * {
  position: relative;
  z-index: 1;
}
.external-apply:hover::before {
  opacity: 1;
}
.external-apply:hover { 
  color: var(--primary); 
  border-color: #c7d2fe;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Sidebar actions with enhanced interactivity */
.sidebar-actions {
  display: grid; 
  gap: 14px;
  padding: 24px; 
  border-radius: 28px; 
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}
.action-form { margin: 0; }
.action-btn {
  width: 100%; 
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 16px 18px; 
  border-radius: 18px;
  border: 1px solid var(--border-light);
  background: linear-gradient(135deg, rgba(248,250,252,0.9), rgba(241,245,249,0.8));
  backdrop-filter: blur(8px);
  color: var(--text-primary); 
  text-decoration: none; 
  font-weight: 800;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.action-btn::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(1,0,128,0.05), transparent);
  transition: width var(--transition-slow);
}
.action-btn:hover::after {
  width: 100%;
}
.action-btn:hover { 
  border-color: var(--primary);
  background: #fff;
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.action-btn.liked { 
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  border-color: #fecdd3; 
  color: #be123c;
}
.action-btn.liked:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(190,18,60,0.15);
}
.action-btn-content { 
  display: inline-flex; 
  gap: 10px; 
  align-items: center;
  position: relative;
  z-index: 1;
}
.action-btn-content i {
  font-size: 1.15rem;
  transition: transform var(--transition);
}
.action-btn:hover .action-btn-content i {
  transform: scale(1.2);
}
.action-count { 
  font-variant-numeric: tabular-nums; 
  color: var(--text-secondary);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

/* Details card with enhanced design */
.details-card {
  padding: 24px; 
  border-radius: 28px; 
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}
.details-title {
  display: flex; 
  align-items: center; 
  gap: 12px;
  font-weight: 900; 
  margin: 0 0 20px;
  font-size: 1.12rem;
  color: var(--text-primary);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-tertiary);
}
.details-title i {
  color: var(--primary);
  font-size: 1.3rem;
}
.detail-row {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 16px 0; 
  border-bottom: 1px dashed var(--border-light);
  transition: all var(--transition);
}
.detail-row:last-child { 
  border-bottom: 0; 
  padding-bottom: 0; 
}
.detail-row:hover {
  padding-left: 8px;
  background: linear-gradient(90deg, rgba(1,0,128,0.02), transparent);
}
.detail-label { 
  display: inline-flex; 
  gap: 8px; 
  align-items: center; 
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.96rem;
}
.detail-label i {
  font-size: 1.08rem;
  opacity: 0.7;
}
.detail-value { 
  font-weight: 800; 
  color: var(--text-primary);
  font-size: 0.98rem;
}

/* Admin card with modern styling */
.admin-card {
  padding: 24px; 
  border-radius: 28px; 
  border: 1px solid var(--border-light);
  background: 
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95)),
    radial-gradient(circle at bottom left, rgba(47,85,212,0.05), transparent);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}
.admin-title { 
  display: flex; 
  gap: 12px; 
  align-items: center; 
  margin: 0 0 18px; 
  font-weight: 900;
  font-size: 1.12rem;
  color: var(--text-primary);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-tertiary);
}
.admin-title i {
  color: var(--primary);
  font-size: 1.3rem;
}
.admin-btn {
  display: inline-flex; 
  gap: 12px; 
  align-items: center; 
  width: 100%;
  padding: 16px 18px; 
  border-radius: 18px; 
  border: 1px solid var(--border-light);
  background: linear-gradient(135deg, rgba(248,250,252,0.9), rgba(241,245,249,0.8));
  backdrop-filter: blur(8px);
  color: var(--text-primary); 
  text-decoration: none; 
  font-weight: 800;
  transition: all var(--transition);
}
.admin-btn:hover { 
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border-color: #c7d2fe;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.admin-btn i {
  transition: transform var(--transition);
  font-size: 1.15rem;
}
.admin-btn:hover i {
  transform: scale(1.15) rotate(-5deg);
}

/* ========== MOBILE STICKY CTA ========== */
.mobile-sticky-apply {
  position: fixed; 
  left: 0; 
  right: 0; 
  bottom: -100px; 
  z-index: 50;
  padding: 16px 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid var(--border-light);
  box-shadow: 
    0 -12px 32px rgba(0,0,0,0.08),
    0 -4px 8px rgba(0,0,0,0.04);
  display: grid; 
  place-items: center;
  transition: all var(--transition-slow);
}
.mobile-sticky-apply::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  background-size: 200% 100%;
  animation: shimmerBar 2s linear infinite;
}
@keyframes shimmerBar {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.mobile-sticky-apply.visible { 
  bottom: 0;
  animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .job-detail-container {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .quick-stats-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 992px) {
  .job-detail-container {
    grid-template-columns: 1fr;
  }
  .job-sidebar { position: static; }
  .quick-stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .similar-jobs-grid { grid-template-columns: 1fr; }
  .perks-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-main { grid-template-columns: 100px 1fr; gap: 20px; }
  .company-logo-hero { width: 100px; height: 100px; border-radius: 20px; }
  .logo-placeholder { font-size: 2rem; }
  .hero-text .hero-title { font-size: clamp(1.8rem, 5vw, 2.2rem); }
  .quick-stats-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  .job-hero { padding: 60px 0 40px; }
  .card-header { padding: 24px 20px 14px; }
  .card-body { padding: 16px 20px 24px; }
}
@media (max-width: 480px) {
  .back-button { font-size: .9rem; padding: 8px 14px; }
  .hero-text .hero-title { font-size: 1.6rem; }
  .hero-company { font-size: 0.95rem; }
  .badge { font-size: .82rem; padding: 8px 12px; }
  .hero-main { grid-template-columns: 80px 1fr; gap: 16px; }
  .company-logo-hero { width: 80px; height: 80px; }
}

/* ========== ACCESSIBILITY ========== */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Improved focus for interactive elements */
.btn-apply:focus-visible,
.action-btn:focus-visible,
.admin-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border: #000;
    --border-light: #000;
  }
  .content-card,
  .stat-card,
  .highlight-banner {
    border-width: 2px;
  }
}




/* Salary Range Mobile Fix */
.salary-highlight .highlight-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.salary-highlight .highlight-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* For smaller screens, ensure it stays on one line */
@media (max-width: 768px) {
  .salary-highlight .highlight-text {
    font-size: 1.5rem; /* Adjust if needed */
    white-space: nowrap;
    overflow: visible;
  }
  
  .salary-highlight .highlight-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* For very small screens, scale down if necessary */
@media (max-width: 480px) {
  .salary-highlight .highlight-text {
    font-size: 1.25rem;
  }
}

/* Alternative: Use transform to scale down on tiny screens */
@media (max-width: 360px) {
  .salary-highlight .highlight-text {
    font-size: 1.1rem;
    letter-spacing: -0.5px;
  }
}



