/* American Power Systems - Design System for Job Postings */
/* WCAG 2.1 AA Compliant Accessibility Enhancements */

/* ===== GLOBAL ACCESSIBILITY ENHANCEMENTS ===== */

/* Screen Reader Only Content - Defined in style.css to avoid duplication */

/* Enhanced Focus Indicators - American Power Systems Brand */
*:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

/* Reduced Motion Support */
@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;
  }
}

/* ===== AMERICAN POWER SYSTEMS DESIGN TOKENS ===== */
:root {
  /* American Power Systems Brand Colors - Red, White, Blue */
  --aps-red: #DC2626;
  --aps-blue: #1a5490; /* True blue matching logo */
  --aps-white: #FFFFFF;
  
  /* Brand Colors - WCAG AA Compliant */
  --brand-primary: var(--aps-blue);
  --brand-secondary: #047857;
  --brand-accent: #000000;
  
  /* Surface Colors - Emphasizing White Dominance */
  --surface-elevated: var(--aps-white);
  --surface-container: #f8fafc;
  --surface-card: var(--aps-white);
  --surface-overlay: rgba(15, 23, 42, 0.1);
  
  /* Text Colors - High Contrast for WCAG AA */
  --text-primary: #000000;
  --text-secondary: #2d3748;
  --text-muted: #4a5568;
  --text-inverse: #ffffff;
  --text-accent: var(--brand-primary);
  
  /* State Colors - Brand Consistent */
  --state-success: #059669;
  --state-warning: #d97706;
  --state-error: var(--aps-red);
  --state-info: var(--aps-blue);
  
  /* Interactive Colors - American Power Systems */
  --interactive-primary: var(--aps-blue);
  --interactive-primary-hover: #2C3E50;
  --interactive-secondary: var(--brand-secondary);
  --interactive-secondary-hover: #065f46;
  --interactive-accent: var(--aps-red);
  --interactive-accent-hover: #b91c1c;
  --focus-ring: var(--aps-blue);
  --focus-ring-offset: 2px;
  
  /* Border Colors */
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --border-strong: #9ca3af;
  
  /* Background Variants */
  --bg-primary: var(--brand-primary);
  --bg-secondary: var(--brand-secondary);
  --bg-muted: #f3f4f6;
  --bg-accent: #fef3c7;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Enhanced Spacing Scale for Better Breathability */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 0.75rem;
  --spacing-lg: 1rem;
  --spacing-xl: 1.5rem;
  --spacing-2xl: 2rem;
  --spacing-3xl: 2.5rem;
  --spacing-4xl: 3rem;
  --spacing-5xl: 4rem;
  --spacing-6xl: 5rem;
  
  /* Section Spacing */
  --section-spacing-sm: var(--spacing-4xl);
  --section-spacing-md: var(--spacing-5xl);
  --section-spacing-lg: var(--spacing-6xl);
  
  /* Enhanced Typography Scale - Professional Hierarchy */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Enhanced Line Heights for Better Readability */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 1.75;
  
  /* Letter Spacing */
  --letter-spacing-wide: 0.08em;
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* ===== ADMIN INTERFACE STYLES (Clean & Simple) ===== */

/* Simple admin cards */
.card .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Admin navigation styling */
.breadcrumb {
  background-color: #f8f9fa;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
}

.breadcrumb-item a {
  color: var(--brand-primary);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* ===== PUBLIC INTERFACE ENHANCED STYLES ===== */

/* ===== PUBLIC JOB PAGES BACKGROUND OVERRIDE ===== */
/* ROBUST SOLUTION: Uses same sidebar backgrounds via body::before and ::after pseudo-elements */
/* Sidebar backgrounds are defined in style.css and inherited by all pages */

/* STEP 1: Job pages use inherited sidebar backgrounds from body::before and ::after */
body.job-page {
  /* Sidebar backgrounds inherited from body pseudo-elements in style.css */
}

/* STEP 2: Remove duplicate background - using only body.job-page background */
/* Pseudo-element background removed to eliminate duplicate painting */

/* STEP 3: Optional subtle overlay (z-index: -1) - using ::after */
.public-job-page::after,
.public-jobs-page::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  z-index: -1;
}

/* STEP 4: Ensure content is properly layered (z-index: 0/1) */
.public-job-page,
.public-jobs-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* Ensure content containers have proper z-index */
.public-job-page .container,
.public-job-page .container-fluid,
.public-jobs-page .container,
.public-jobs-page .container-fluid {
  position: relative;
  z-index: 1;
}

/* STEP 5: Mobile performance - sidebars hidden on mobile via body::before/::after media queries in style.css */
@media (max-width: 768px) {
  /* Sidebar backgrounds already hidden via body::before/::after display: none in style.css */
}

/* STEP 6: Accessibility - reduced motion handled via body::before/::after position change in style.css */
@media (prefers-reduced-motion: reduce) {
  /* Sidebar backgrounds use position: absolute instead of fixed via style.css media query */
}

/* ===== MODERN BREADCRUMB STYLES ===== */
.public-job-page .modern-breadcrumb,
.public-jobs-page .modern-breadcrumb {
  background: var(--surface-container);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg) var(--spacing-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.public-job-page .breadcrumb-link,
.public-jobs-page .breadcrumb-link {
  color: var(--interactive-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
}

.public-job-page .breadcrumb-link:hover,
.public-jobs-page .breadcrumb-link:hover {
  background: var(--interactive-primary);
  color: var(--text-inverse);
  transform: translateY(-1px);
}

.public-job-page .breadcrumb-item.active,
.public-jobs-page .breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
}

/* ===== ENHANCED HERO SECTION STYLES ===== */
.public-job-page .jobs-hero-section,
.public-jobs-page .jobs-hero-section {
  background-image: url('/images/hero-battery-background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: var(--spacing-6xl) 0;
  margin-bottom: 0;
  overflow: hidden;
}

.public-job-page .hero-pattern,
.public-jobs-page .hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.public-job-page .hero-text,
.public-jobs-page .hero-text {
  color: var(--text-inverse);
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 2;
}

.public-job-page .hero-title,
.public-jobs-page .hero-title {
  color: var(--text-inverse);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-2xl);
  font-size: var(--font-size-5xl);
  line-height: var(--line-height-tight);
  text-align: center;
  letter-spacing: -0.025em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.9);
}

.public-job-page .hero-subtitle,
.public-jobs-page .hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-3xl);
  line-height: var(--line-height-relaxed);
  text-align: center;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.public-job-page .hero-subtitle strong,
.public-jobs-page .hero-subtitle strong {
  color: var(--text-inverse);
  font-weight: var(--font-weight-bold);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* ===== ENHANCED HERO STATS PRESENTATION ===== */
.public-job-page .hero-stats,
.public-jobs-page .hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-3xl);
  margin-top: var(--spacing-3xl);
  padding: var(--spacing-2xl) var(--spacing-3xl);
  background: rgba(30, 35, 50, 0.65);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.public-job-page .stat-item,
.public-jobs-page .stat-item {
  text-align: center;
  position: relative;
}

.public-job-page .stat-number,
.public-jobs-page .stat-number {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-inverse);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


.public-job-page .stat-label,
.public-jobs-page .stat-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  line-height: var(--line-height-normal);
}

.public-job-page .stat-divider,
.public-jobs-page .stat-divider {
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
}

/* Responsive hero stats */
@media (max-width: 768px) {
  .public-job-page .hero-stats,
  .public-jobs-page .hero-stats {
    flex-direction: column;
    gap: var(--spacing-2xl);
    padding: var(--spacing-xl);
  }
  
  .public-job-page .stat-divider,
  .public-jobs-page .stat-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  }
}
  

  /* ===== JOB HERO CARD STYLES ===== */
  /* OPTION 2: White background with colored borders (ACTIVE) */
  .job-hero-card {
    background: var(--surface-elevated);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    margin-bottom: var(--section-spacing-md);
    /* Blue border all around matching Apply Now button */
    border: 4px solid var(--brand-primary);
    box-shadow: 
      0 0 20px rgba(26, 84, 144, 0.2),
      0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .job-hero-header {
    position: relative;
    overflow: hidden;
  }

  .job-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    opacity: 1;
  }

  .job-hero-background::before {
    display: none;
  }

  .job-hero-content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-3xl) 0;
    color: var(--text-primary);
  }

  /* Flexbox layout for proper button alignment */
  .job-hero-content .row {
    align-items: stretch;
  }

  .job-hero-content .col-lg-4 {
    display: flex;
  }

  .job-hero-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    text-shadow: none;
  }

  .job-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
  }

  .job-meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--surface-container);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
  }

  .job-meta-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-primary);
    border-radius: 50%;
    color: var(--text-inverse);
  }

  .job-meta-text {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
  }

  .job-subtitle {
    color: #000000;
  }

  .job-status-badge {
    background: rgba(5, 150, 105, 0.1);
    color: #047857;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    border: 1px solid rgba(5, 150, 105, 0.3);
  }

  .btn-hero-primary {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: var(--spacing-lg) var(--spacing-2xl);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(56, 56, 163, 0.3);
  }

  .btn-hero-primary:hover {
    background: var(--interactive-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 56, 163, 0.4);
    color: white;
  }

  /* ===== OPTION 3: Light solid color background (BACKUP - COMMENTED OUT) ===== */
  /*
  .job-hero-card {
    background: var(--surface-elevated);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    position: relative;
    margin-bottom: var(--section-spacing-md);
  }

  .job-hero-header {
    position: relative;
    overflow: hidden;
  }

  .job-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    opacity: 1;
  }

  .job-hero-background::before {
    display: none;
  }

  .job-hero-content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-3xl) 0;
    color: var(--text-primary);
  }

  .job-hero-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    text-shadow: none;
  }

  .job-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
  }

  .job-meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
  }

  .job-meta-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-primary);
    border-radius: 50%;
    color: var(--text-inverse);
  }

  .job-meta-text {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
  }

  .job-subtitle {
    color: #000000;
  }

  .job-status-badge {
    background: rgba(5, 150, 105, 0.1);
    color: #047857;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    border: 1px solid rgba(5, 150, 105, 0.3);
  }

  .btn-hero-primary {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: var(--spacing-lg) var(--spacing-2xl);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(56, 56, 163, 0.3);
  }

  .btn-hero-primary:hover {
    background: var(--interactive-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 56, 163, 0.4);
    color: white;
  }
  */

  .job-hero-footer {
    display: none;
  }

  /* Job Hero Badges and Actions Alignment */
  .job-hero-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    gap: var(--spacing-md);
  }

  .job-hero-actions {
    margin-top: auto;
  }

  .job-detail-item {
    display: flex;
    gap: var(--spacing-sm);
  }

  .job-detail-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-sm);
  }

  .job-detail-value {
    color: var(--text-inverse);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
  }

  /* ===== MODERN JOB SECTION STYLES ===== */
  .modern-job-section {
    margin-bottom: var(--section-spacing-md);
  }

  .modern-job-section:first-of-type {
    margin-top: 0;
  }

  /* ===== SEAMLESS BACKGROUND FLOW - CONSOLIDATED ABOVE ===== */
  /* Background rules for both .public-job-page and .public-jobs-page are now consolidated above */
  /* This eliminates duplicate rules and ensures consistent single background across all job pages */

  /* Content container with white background and margins for seamless flow */
  .public-job-page .row.justify-content-center {
    margin: 0;
  }

  .public-job-page .col-lg-10 {
    background: var(--surface-elevated);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    padding: var(--spacing-2xl) var(--spacing-3xl);
  }

  .modern-card {
    background: var(--surface-elevated);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--transition-normal);
  }

  .modern-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }

  .modern-card-header {
    background: var(--surface-container);
    padding: var(--spacing-xl) var(--spacing-2xl);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
  }

  .card-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: var(--font-size-xl);
    box-shadow: var(--shadow-sm);
  }

  .benefits-icon {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, #059669 100%);
  }

  .card-header-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0;
    flex: 1;
  }

  .card-header-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  }

  .modern-card-body {
    padding: var(--spacing-2xl);
  }

  /* ===== CONTENT SECTION STYLES ===== */
  .content-section {
    margin-bottom: var(--spacing-3xl);
  }

  .content-section:last-child {
    margin-bottom: 0;
  }

  .section-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
  }
  
  /* Stack section header on mobile */
  @media (max-width: 576px) {
    .section-header {
      flex-direction: column;
      align-items: flex-start;
      text-align: left;
    }
    
    .section-header.text-center {
      align-items: center;
      text-align: center;
    }
  }

  .section-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: var(--font-size-lg);
  }

  .section-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
  }

  .section-content {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
  }

  .section-content h1,
  .section-content h2,
  .section-content h3,
  .section-content h4,
  .section-content h5,
  .section-content h6 {
    color: var(--text-primary);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-semibold);
  }

  .section-content ul,
  .section-content ol {
    margin: var(--spacing-lg) 0;
    padding-left: var(--spacing-xl);
  }

  .section-content li {
    margin-bottom: var(--spacing-sm);
    line-height: var(--line-height-relaxed);
  }

  .benefits-content {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid #bbf7d0;
  }

  .company-link-section {
    margin-top: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .company-link-card {
    background: var(--surface-elevated);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border: 1px solid var(--border-light);
  }

  .company-link-icon {
    color: var(--brand-primary);
  }

  .company-link {
    color: var(--brand-primary);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
  }

  .company-link:hover {
    text-decoration: underline;
  }

  .benefits-apply-section {
    margin-top: var(--spacing-2xl);
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-light);
  }

  /* ===== APPLICATION SECTION STYLES ===== */
  .application-intro {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
  }

  .application-text {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin: 0;
  }

  .application-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
  }

  .application-method {
    display: flex;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: var(--surface-container);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
  }

  .application-method:hover {
    background: var(--surface-elevated);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .method-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    flex-shrink: 0;
  }

  .method-content {
    display: flex;
    gap: var(--spacing-lg);
    flex: 1;
  }

  .method-icon {
    width: 48px;
    height: 48px;
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-size: var(--font-size-xl);
    border: 1px solid var(--border-light);
    flex-shrink: 0;
  }

  .method-details {
    flex: 1;
  }

  .method-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 var(--spacing-sm) 0;
  }

  .method-description {
    color: var(--text-secondary);
    margin: 0;
    line-height: var(--line-height-relaxed);
  }

  .application-email-link,
  .application-link {
    color: var(--brand-primary);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
  }

  .application-email-link:hover,
  .application-link:hover {
    text-decoration: underline;
  }

  .benefits-info-section {
    margin-bottom: var(--spacing-2xl);
  }

  .benefits-info-card {
    background: linear-gradient(135deg, #e8eef5 0%, #d3dde8 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border: 1px solid #a9b6c6;
  }

  .benefits-info-icon {
    color: var(--state-info);
  }

  .benefits-link {
    color: var(--state-info);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
  }

  .benefits-link:hover {
    text-decoration: underline;
  }

  .equal-opportunity-notice {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid #fbbf24;
  }

  .notice-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
  }

  .notice-icon {
    color: var(--state-warning);
  }

  .notice-text {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
  }

  /* ===== SHARE SECTION STYLES ===== */
  .share-section {
    text-align: center;
  }

  .share-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
  }

  .share-url-container {
    max-width: 500px;
    margin: 0 auto;
  }

  .share-input-group {
    display: flex;
    margin-bottom: var(--spacing-md);
  }

  .share-url-input {
    flex: 1;
    padding: var(--spacing-lg);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    background: var(--surface-container);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
  }

  .share-copy-btn {
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--brand-primary);
    color: var(--text-inverse);
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-fast);
  }

  .share-copy-btn:hover {
    background: var(--interactive-primary-hover);
  }

  .share-copy-btn.copy-success {
    background: var(--state-success);
  }

  .share-copy-btn.copy-error {
    background: var(--state-error);
  }

  .share-help-text {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
  }

  /* ===== ACTION SECTION STYLES ===== */
  .action-section-guest {
    margin-top: var(--spacing-4xl);
  }

  .guest-cta-card {
    background: var(--surface-container);
    border-radius: var(--radius-xl);
    padding: var(--spacing-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
  }

  .guest-cta-content {
    position: relative;
    z-index: 2;
  }

  .guest-cta-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
  }

  .guest-cta-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
  }

  .btn-guest-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    color: var(--text-inverse);
    border: none;
    padding: var(--spacing-lg) var(--spacing-2xl);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: var(--shadow-md);
  }

  .btn-guest-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-inverse);
  }

  .btn-guest-secondary {
    background: var(--surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    padding: var(--spacing-lg) var(--spacing-2xl);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
  }

  .btn-guest-secondary:hover {
    background: var(--surface-container);
    transform: translateY(-1px);
    color: var(--text-primary);
  }

  .guest-cta-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    border-radius: 50%;
    opacity: 0.1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-inverse);
  }

  /* ===== PUBLIC JOB CARD STYLES ===== */
  .public-job-card {
    background: var(--surface-elevated);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: var(--spacing-3xl);
    position: relative;
  }

  .public-job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border-color: var(--interactive-primary);
  }

  .public-job-card-header {
    background: var(--surface-container);
    padding: var(--spacing-2xl) var(--spacing-2xl) var(--spacing-xl);
    border-bottom: 1px solid var(--border-light);
    position: relative;
  }

  .job-card-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--aps-blue) 0%, var(--brand-accent) 100%);
  }

  .job-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
  }
  
  /* Status badge wrapper - keep it at the top */
  .job-status-section {
    flex-shrink: 0;
    align-self: flex-start;
  }

  .job-priority-indicator {
    position: relative;
  }

  .priority-pulse {
    width: 12px;
    height: 12px;
    background: var(--state-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(5, 150, 105, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
    }
  }

  .modern-status-badge {
    background: rgba(5, 150, 105, 0.1);
    color: var(--state-success);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    border: 1px solid rgba(5, 150, 105, 0.2);
  }

  .modern-job-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0;
    line-height: var(--line-height-tight);
  }

  .job-subtitle {
    margin-top: 0;
    color: #000000;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
  }

  /* Override job subtitle color for job cards on main page (light background) */
  .public-job-card-header .job-subtitle,
  .public-job-card-body .job-subtitle {
    color: var(--text-primary); /* Black/dark text for better contrast on light background */
  }

  .public-job-card-body {
    padding: var(--spacing-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .job-meta-grid {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
  }
  
  .job-meta-grid .job-meta-item {
    flex: 1;
  }

  .job-meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
  }

  .meta-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: var(--font-size-lg);
    flex-shrink: 0;
  }

  .location-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  }

  .salary-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  }

  .date-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  }

  .meta-content {
    flex: 1;
  }

  .meta-label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    margin-bottom: 2px;
  }

  .meta-value {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
  }

  /* Global baseline spacing for job description sections */
  .job-description-section {
    margin-bottom: var(--spacing-md);
  }

  /* Scoped override: Remove margin only when description is last child in job card body */
  .public-job-card-body > .job-description-section:last-child {
    margin-bottom: 0;
  }

  .modern-job-description {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin: 0;
  }

  .job-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
  }

  .highlight-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--surface-container);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
  }

  .highlight-icon {
    color: var(--brand-primary);
    font-size: var(--font-size-sm);
  }

  .highlight-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
  }

  .public-job-card-footer {
    padding: var(--spacing-xl);
    background: var(--surface-container);
    border-top: 1px solid var(--border-light);
    position: relative;
    margin-top: auto;
  }

  .footer-background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface-container);
  }

  .job-action-container {
    position: relative;
    z-index: 2;
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
  }

  .btn-modern {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    flex: 1;
    justify-content: center;
  }

  .btn-primary-modern {
    background: var(--brand-primary);
    color: var(--text-inverse);
    border: none;
  }

  .btn-primary-modern:hover {
    background: var(--interactive-primary-hover);
    color: var(--text-inverse);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .btn-secondary-modern {
    background: var(--surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
  }

  .btn-secondary-modern:hover {
    background: var(--surface-container);
    color: var(--text-primary);
    transform: translateY(-1px);
  }

  .btn-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
    z-index: 2;
  }

  .btn-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity var(--transition-fast);
  }

  .btn-modern:hover .btn-hover-effect {
    opacity: 1;
  }

  .quick-actions {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
  }

  .quick-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-elevated);
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    cursor: pointer;
  }

  .quick-action-btn:hover {
    background: var(--brand-primary);
    color: var(--text-inverse);
    transform: scale(1.1);
  }
}

/* ===== PUBLIC JOBS HOMEPAGE STYLES ===== */
/* ===== CRITICAL CTA CLASSES (Top Level) ===== */
.btn-cta-primary {
  background: var(--brand-primary);
  color: var(--text-inverse);
  border: none;
  padding: var(--spacing-lg) var(--spacing-2xl);
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-cta-primary:hover {
  background: var(--interactive-primary-hover);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-cta-secondary {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  padding: var(--spacing-lg) var(--spacing-2xl);
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-cta-secondary:hover {
  background: var(--surface-container);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* ===== PUBLIC JOBS HOMEPAGE STYLES (Flattened) ===== */

.public-jobs-page .jobs-hero-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

  .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/hero-battery-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }


  .hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(56, 56, 163, 0.3);
  }

  .hero-content {
    position: relative;
    z-index: 2;
  }

  .hero-title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-inverse);
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .hero-subtitle {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-3xl);
  }

  .hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-3xl);
    flex-wrap: wrap;
  }

  .stat-item {
    text-align: center;
  }

  .stat-number {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-inverse);
    display: block;
    margin-bottom: var(--spacing-sm);
  }

  .stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
  }

  /* ===== JOBS LISTING SECTION ===== */
  .jobs-listing-section {
    padding: var(--spacing-xl) 0 var(--spacing-4xl) 0;
    background: var(--surface-container);
    position: relative;
  }

  .section-header {
    margin-bottom: var(--spacing-4xl);
  }

  .section-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
  }

  .section-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
  }

  .jobs-grid {
    margin-bottom: var(--spacing-lg);
  }

  /* ===== ENHANCED CTA SECTION ===== */
  /* Why Work at APS Section - Glassmorphism with dark background */
  .why-work-section {
    padding: var(--spacing-6xl) 0;
    position: relative;
    overflow: hidden;
    min-height: 400px;
  }
  
  /* Questions/Learn More Section - White background */
  .jobs-cta-section {
    padding: var(--spacing-2xl) 0;
    background: #ffffff;
  }
  
  /* Dark energy beam background */
  .cta-energy-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #2a3544;
    z-index: 1;
  }
  
  /* Overlay gradient for depth */
  .cta-energy-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
      rgba(0, 188, 212, 0.1) 0%, 
      transparent 30%, 
      transparent 70%, 
      rgba(255, 87, 34, 0.1) 100%
    );
    z-index: 2;
  }
  
  /* Container positioning */
  .jobs-cta-section .container {
    position: relative;
    z-index: 3;
  }
  
  /* Glassmorphism card */
  .cta-glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-4xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
      0 8px 32px 0 rgba(31, 38, 135, 0.37),
      -4px 0 16px rgba(0, 188, 212, 0.3),
      4px 0 16px rgba(255, 87, 34, 0.3);
    position: relative;
    overflow: hidden;
  }
  
  /* Left cyan accent border */
  .cta-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--aps-cyan) 0%, rgba(0, 188, 212, 0.5) 100%);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.6);
  }
  
  /* Right orange accent border */
  .cta-glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--aps-orange) 0%, rgba(255, 87, 34, 0.5) 100%);
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.6);
  }
  
  /* Mobile responsiveness for glassmorphism card */
  @media (max-width: 768px) {
    .why-work-section {
      padding: var(--spacing-4xl) 0;
      min-height: 300px;
    }
    
    .cta-glass-card {
      padding: var(--spacing-3xl) var(--spacing-xl);
    }
    
    .cta-title {
      font-size: var(--font-size-2xl);
    }
    
    .cta-description {
      font-size: var(--font-size-base);
      max-width: 100%;
    }
  }
  
  @media (max-width: 576px) {
    .why-work-section {
      padding: var(--spacing-3xl) 0;
      min-height: auto;
    }
    
    .cta-glass-card {
      padding: var(--spacing-2xl) var(--spacing-lg);
      border-radius: var(--radius-lg);
    }
    
    .cta-title {
      font-size: var(--font-size-xl);
      margin-bottom: var(--spacing-lg);
    }
    
    .cta-description {
      font-size: var(--font-size-sm);
      line-height: 1.6;
    }
    
    /* Slightly reduce glow on small screens for better readability */
    .cta-glass-card::before,
    .cta-glass-card::after {
      box-shadow: 0 0 12px rgba(0, 188, 212, 0.4);
    }
  }

  .cta-card {
    background: var(--surface-container);
    border-radius: var(--radius-xl);
    padding: var(--spacing-4xl);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--aps-blue) 0%, var(--brand-accent) 100%);
  }

  .cta-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: #ffffff;
    margin-bottom: var(--spacing-xl);
    line-height: var(--line-height-tight);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .cta-description {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-3xl);
    line-height: var(--line-height-relaxed);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  }

  .cta-actions {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn-cta-primary {
    background: var(--aps-blue);
    color: var(--text-inverse);
    border: none;
    padding: var(--spacing-lg) var(--spacing-2xl);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
  }

  .btn-cta-primary:hover {
    background: var(--interactive-primary-hover);
    color: var(--text-inverse);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

  .btn-cta-secondary {
    background: var(--surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    padding: var(--spacing-lg) var(--spacing-2xl);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
  }

  .btn-cta-secondary:hover {
    background: var(--surface-container);
    color: var(--text-primary);
    transform: translateY(-1px);
  }

  /* ===== EMPTY STATE ===== */
  .empty-state-section {
    padding: var(--spacing-4xl) 0;
  }

  .empty-state-card {
    background: var(--surface-elevated);
    border-radius: var(--radius-xl);
    padding: var(--spacing-4xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
  }

  .empty-state-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-2xl);
    font-size: 3rem;
    color: var(--text-inverse);
  }

  .empty-state-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
  }

  .empty-state-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .empty-state-actions {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
  }

  .btn-empty-primary {
    background: var(--aps-blue);
    color: var(--text-inverse);
    border: none;
    padding: var(--spacing-lg) var(--spacing-2xl);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
  }

  .btn-empty-primary:hover {
    background: var(--interactive-primary-hover);
    color: var(--text-inverse);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .btn-empty-secondary {
    background: var(--surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    padding: var(--spacing-lg) var(--spacing-2xl);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
  }

  .btn-empty-secondary:hover {
    background: var(--surface-container);
    color: var(--text-primary);
    transform: translateY(-1px);
  }

  .empty-state-footer {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
  }


}

/* ===== ANIMATION ENHANCEMENTS ===== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: slideInUp 0.6s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .public-job-page .hero-title,
  .public-jobs-page .hero-title {
    font-size: 2.5rem;
  }

  .public-job-page .hero-stats,
  .public-jobs-page .hero-stats {
    flex-direction: column;
    gap: var(--spacing-xl);
  }

  .public-job-page .stat-divider,
  .public-jobs-page .stat-divider {
    display: none;
  }

  .public-job-page .job-action-container,
  .public-jobs-page .job-action-container {
    flex-direction: column;
  }

  .public-job-page .application-method,
  .public-jobs-page .application-method {
    flex-direction: column;
    text-align: center;
  }

  .public-job-page .method-content,
  .public-jobs-page .method-content {
    flex-direction: column;
    align-items: center;
  }

  .public-jobs-page .cta-actions,
  .public-jobs-page .empty-state-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .public-job-page .hero-title,
  .public-jobs-page .hero-title {
    font-size: 2rem;
  }

  /* Reduce padding on mobile for better space utilization */
  .public-job-page .modern-card-body,
  .public-jobs-page .modern-card-body {
    padding: var(--spacing-lg);
  }

  .public-job-page .job-hero-content,
  .public-jobs-page .hero-content {
    padding: var(--spacing-xl) 0;
  }
  
  /* Job hero title for public job posting page */
  .job-hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
  }
  
  /* Subtitle and metadata spacing */
  .job-subtitle {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
  }
  
  .job-hero-meta {
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }
  
  /* Center and full-width Apply button on mobile */
  .job-hero-badges {
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    gap: var(--spacing-md);
  }
  
  .job-hero-actions {
    width: 100%;
  }
  
  .btn-hero-primary {
    width: 100%;
    display: block;
    text-align: center;
    padding: var(--spacing-md) var(--spacing-lg);
  }
  
  /* Job card mobile responsiveness */
  .public-job-card-header {
    padding: var(--spacing-xl) var(--spacing-lg);
  }
  
  .public-job-card-body {
    padding: var(--spacing-lg);
  }
  
  .public-job-card-footer {
    padding: var(--spacing-lg);
  }
  
  .job-meta-grid {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .job-action-container {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .modern-btn-primary,
  .modern-btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  /* Reduce vertical spacing between sections */
  .modern-job-section {
    margin-bottom: var(--spacing-2xl);
  }
  
  /* Fix company link cards for mobile */
  .company-link-card {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
  }
  
  .company-link-icon {
    font-size: 1.25rem;
  }
  
  .company-link-card span {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .company-link {
    display: block;
    word-break: break-word;
    font-size: 0.9rem;
  }
}

/* Extra small screens (480px and below) */
@media (max-width: 480px) {
  /* Further reduce hero title for very small phones */
  .job-hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  /* Tighter padding for very small screens */
  .public-job-page .job-hero-content,
  .public-jobs-page .hero-content {
    padding: var(--spacing-lg) 0;
  }
  
  .public-job-page .modern-card-body,
  .public-jobs-page .modern-card-body {
    padding: var(--spacing-md);
  }
  
  /* Smaller meta items */
  .job-meta-item {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.875rem;
  }
  
  .job-meta-icon {
    width: 20px;
    height: 20px;
  }
  
  /* Compact button padding */
  .btn-hero-primary {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
  }
  
  /* Reduce section spacing */
  .modern-job-section {
    margin-bottom: var(--spacing-xl);
  }
  
  /* Card headers */
  .modern-card-header {
    padding: var(--spacing-lg);
  }
  
  .card-header-title {
    font-size: var(--font-size-lg);
  }
  
  /* Further optimize company link cards for very small screens */
  .company-link-card {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .company-link-icon {
    font-size: 1.1rem;
  }
  
  .company-link-card span {
    font-size: 0.85rem;
  }
  
  .company-link {
    font-size: 0.85rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .public-job-page,
  .public-jobs-page {
    color: #000;
    background: #fff;
  }

  .public-job-page .job-hero-background,
  .public-jobs-page .hero-background {
    display: none;
  }

  .public-job-page .btn-modern,
  .public-jobs-page .btn-cta-primary,
  .public-jobs-page .btn-cta-secondary {
    border: 1px solid #000;
    background: #fff;
    color: #000;
  }

  .public-job-page .quick-actions,
  .public-jobs-page .quick-actions {
    display: none;
  }
}

/* ===== JOB SEARCH AND FILTER SECTION STYLES ===== */

.job-search-section {
  background: var(--surface-container);
  padding: var(--spacing-5xl) 0;
  margin-bottom: 0;
  position: relative;
}


.search-filter-card {
  background: var(--surface-elevated);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
}

.search-filter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--aps-blue) 0%, var(--brand-accent) 100%);
}

.search-card-header {
  background: var(--surface-container);
  padding: var(--spacing-3xl) var(--spacing-2xl);
  border-bottom: 1px solid var(--border-light);
}

.search-header-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.search-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--aps-blue) 0%, #2C3E50 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(56, 56, 163, 0.2);
  flex-shrink: 0;
}

.search-header-icon {
  color: var(--text-inverse);
  font-size: var(--font-size-xl);
}

.search-header-text {
  flex: 1;
}

.search-title {
  color: var(--text-primary);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--spacing-sm) 0;
  line-height: var(--line-height-tight);
}

.search-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  margin: 0;
  line-height: var(--line-height-relaxed);
}

.job-search-form {
  padding: var(--spacing-3xl) var(--spacing-2xl);
}

.search-form-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--spacing-xl);
  align-items: end;
}

/* Search Input Styling */
.search-input-group {
  position: relative;
}

.search-label {
  position: absolute;
  left: var(--spacing-lg);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}

.search-input-icon {
  color: var(--text-muted);
  font-size: var(--font-size-base);
}

.search-input {
  width: 100%;
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-lg) var(--spacing-5xl);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-family: var(--font-family-primary);
  background: var(--surface-elevated);
  transition: all var(--transition-normal);
  color: var(--text-primary);
}

.search-input:focus {
  outline: none;
  border-color: var(--interactive-primary);
  box-shadow: 0 0 0 3px rgba(56, 56, 163, 0.1);
  background: var(--surface-elevated);
}

.search-input::placeholder {
  color: var(--text-muted);
  font-style: normal;
}

/* Location Select Styling */
.location-select-group {
  position: relative;
  min-width: 200px;
}

.location-label {
  position: absolute;
  left: var(--spacing-lg);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}

.location-input-icon {
  color: var(--text-muted);
  font-size: var(--font-size-base);
}

.location-select {
  width: 100%;
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-lg) var(--spacing-5xl);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-family: var(--font-family-primary);
  background: var(--surface-elevated);
  transition: all var(--transition-normal);
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--spacing-lg) center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  padding-right: var(--spacing-5xl);
}

.location-select:focus {
  outline: none;
  border-color: var(--interactive-primary);
  box-shadow: 0 0 0 3px rgba(56, 56, 163, 0.1);
  background: var(--surface-elevated);
}

/* Action Buttons Styling */
.search-actions-group {
  display: flex;
  gap: var(--spacing-md);
}

.btn-search-primary {
  background: var(--aps-blue);
  color: var(--text-inverse);
  border: none;
  padding: var(--spacing-lg) var(--spacing-2xl);
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  transition: all var(--transition-normal);
  box-shadow: 0 4px 12px rgba(56, 56, 163, 0.2);
  cursor: pointer;
  text-decoration: none;
  min-width: 140px;
  justify-content: center;
}

.btn-search-primary:hover,
.btn-search-primary:focus {
  background: var(--interactive-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 56, 163, 0.3);
  color: var(--text-inverse);
}

.btn-search-secondary {
  background: var(--surface-elevated);
  color: var(--text-secondary);
  border: 2px solid var(--border-medium);
  padding: var(--spacing-lg) var(--spacing-2xl);
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
  min-width: 140px;
  justify-content: center;
}

.btn-search-secondary:hover,
.btn-search-secondary:focus {
  background: var(--border-light);
  border-color: var(--interactive-primary);
  color: var(--interactive-primary);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-icon {
  font-size: var(--font-size-sm);
}

.btn-text {
  font-family: var(--font-family-primary);
}

/* Active Filters Display */
.active-filters {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-2xl);
  border-top: 1px solid var(--border-light);
}

.filters-header {
  margin-bottom: var(--spacing-lg);
}

.filters-label {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--surface-container);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  position: relative;
}

.search-filter {
  border-color: rgba(56, 56, 163, 0.3);
  background: linear-gradient(135deg, rgba(56, 56, 163, 0.05) 0%, var(--surface-elevated) 100%);
}

.location-filter {
  border-color: rgba(5, 150, 105, 0.3);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.05) 0%, var(--surface-elevated) 100%);
}

.filter-icon {
  font-size: var(--font-size-xs);
  opacity: 0.7;
}

.search-filter .filter-icon {
  color: var(--aps-blue);
}

.location-filter .filter-icon {
  color: var(--brand-secondary);
}

.filter-text {
  font-weight: var(--font-weight-medium);
}

.filter-remove {
  color: var(--text-muted);
  text-decoration: none;
  padding: var(--spacing-xs);
  border-radius: 50%;
  transition: all var(--transition-fast);
  margin-left: var(--spacing-sm);
}

.filter-remove:hover,
.filter-remove:focus {
  color: var(--aps-red);
  background: rgba(220, 38, 38, 0.1);
  transform: scale(1.1);
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 992px) {
  .search-form-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .location-select-group {
    min-width: auto;
  }
  
  .search-actions-group {
    grid-column: 1;
    justify-content: center;
    margin-top: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .search-header-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg);
  }
  
  .search-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .search-title {
    font-size: var(--font-size-xl);
  }
  
  .search-subtitle {
    font-size: var(--font-size-sm);
  }
  
  .job-search-form {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }
  
  .search-card-header {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }
  
  .search-actions-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-search-primary,
  .btn-search-secondary {
    width: 100%;
  }
  
  .filters-list {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .job-search-section {
    padding: var(--spacing-3xl) 0;
    margin-bottom: 0;
  }
  
  .search-input,
  .location-select {
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) var(--spacing-4xl);
  }
  
  .search-label,
  .location-label {
    left: var(--spacing-md);
  }
  
  .location-select {
    padding-right: var(--spacing-4xl);
    background-position: right var(--spacing-md) center;
  }
  
  .btn-search-primary,
  .btn-search-secondary {
    padding: var(--spacing-md) var(--spacing-lg);
    min-width: auto;
  }
}

/* California Privacy Notice */
.privacy-notice-ca {
  background: linear-gradient(135deg, rgba(26, 84, 144, 0.12) 0%, rgba(26, 84, 144, 0.06) 100%);
  border-left: 5px solid var(--aps-blue);
  padding: var(--spacing-lg) var(--spacing-xl);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-lg);
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.7;
  box-shadow: 0 3px 12px rgba(26, 84, 144, 0.15);
}

.privacy-notice-ca i {
  color: var(--aps-blue);
  font-size: 1.25rem;
  vertical-align: middle;
}

.privacy-notice-ca a {
  color: var(--aps-blue);
  font-weight: var(--font-weight-semibold);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: all var(--transition-fast);
  font-size: 1.05rem;
}

.privacy-notice-ca a:hover {
  color: #155080;
  text-decoration: underline;
}

.privacy-notice-ca a:focus-visible {
  outline: 2px solid var(--aps-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  .search-filter-card,
  .search-input,
  .location-select,
  .btn-search-primary,
  .btn-search-secondary,
  .filter-remove {
    transition: none !important;
  }
  
  .btn-search-primary:hover,
  .btn-search-secondary:hover {
    transform: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .search-filter-card {
    border: 2px solid var(--text-primary);
  }
  
  .search-input,
  .location-select {
    border: 2px solid var(--text-primary);
  }
  
  .btn-search-primary {
    border: 2px solid var(--text-inverse);
  }
  
  .btn-search-secondary {
    border: 2px solid var(--text-primary);
  }
}