/* ============================================
   SmallJobs - Job Board CSS
   ============================================ */

/* CSS Variables */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-50: #eff6ff;
  --secondary: #10b981;
  --secondary-dark: #059669;
  --accent: #f59e0b;
  --danger: #ef4444;
  
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-dark: #1f2937;
  
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --border-dark: #d1d5db;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  --radius-sm: 4px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.2s ease;
  --transition-slow: all 0.3s ease;
  
  --container-max: 1280px;
  --header-height: 64px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.2;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-outline-secondary {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--border-dark);
}

.btn-outline-secondary:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn-block {
  width: 100%;
}

.btn-search {
  height: 52px;
  padding: 0 1.75rem;
  font-size: 1rem;
}

/* Header & Navigation */
.header {
  background-color: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}

.logo:hover {
  color: var(--primary);
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 1px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0891b2 100%);
  color: white;
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* Search Bar */
.search-bar {
  background: white;
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-xl);
}

.hero-search {
  max-width: 900px;
  margin: 0 auto;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-field {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  font-size: 1.125rem;
  pointer-events: none;
}

.search-field input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.5rem;
  border: none;
  font-size: 1rem;
  outline: none;
  background: transparent;
  color: var(--text-primary);
}

.search-field input::placeholder {
  color: var(--text-muted);
}

.search-divider {
  width: 1px;
  height: 32px;
  background-color: var(--border);
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-top: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 50;
}

.autocomplete-dropdown.active {
  display: block;
}

.autocomplete-group {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.autocomplete-group:last-child {
  border-bottom: none;
}

.autocomplete-group-label {
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.autocomplete-item {
  padding: 0.625rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.autocomplete-item:hover {
  background-color: var(--primary-50);
  color: var(--primary);
}

/* Stats */
.stats {
  padding: 3rem 0;
  background: white;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Section Styles */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Category Cards */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.category-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-slow);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.category-count {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Job Grid */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* Job Card */
.job-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.job-card-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.company-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.job-card-title {
  flex: 1;
  min-width: 0;
}

.job-title {
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.job-title a {
  color: var(--text-primary);
}

.job-title a:hover {
  color: var(--primary);
}

.job-company {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.job-company a {
  color: var(--text-secondary);
}

.job-company a:hover {
  color: var(--primary);
}

.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.meta-icon {
  font-size: 1rem;
}

.job-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
}

.tag-type {
  background-color: #dbeafe;
  color: #1e40af;
}

.tag-level {
  background-color: #fce7f3;
  color: #9d174d;
}

.tag-skill {
  background-color: #d1fae5;
  color: #065f46;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-remote {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-hybrid {
  background-color: #fef3c7;
  color: #92400e;
}

.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.job-posted {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Featured Companies */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.company-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-slow);
  text-decoration: none;
  display: block;
}

.company-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}

.company-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.company-card .company-logo {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
}

.company-card-info h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.company-card-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.company-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.company-job-count {
  color: var(--primary);
  font-weight: 600;
}

/* Why Choose Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition-slow);
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  color: white;
  margin: 4rem 0;
}

.cta-section h2 {
  color: white;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-outline {
  color: white;
  border-color: white;
}

.cta-section .btn-outline:hover {
  background-color: white;
  color: var(--primary);
}

.cta-section .btn-primary {
  background-color: white;
  color: var(--primary);
  border-color: white;
}

.cta-section .btn-primary:hover {
  background-color: var(--primary-50);
  color: var(--primary-dark);
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-slow);
  text-decoration: none;
  display: block;
}

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

.blog-card-image {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-50), var(--bg-tertiary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Jobs Listing Page */
.page-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.jobs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  align-self: start;
}

.filter-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.filter-section h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.filter-group {
  margin-bottom: 0.75rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.filter-label:hover {
  color: var(--primary);
}

.filter-label input[type="checkbox"],
.filter-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.filter-count {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.jobs-main {
  min-width: 0;
}

.jobs-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.jobs-count {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.jobs-count strong {
  color: var(--text-primary);
}

.sort-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  background: white;
  cursor: pointer;
  outline: none;
}

.sort-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  background: white;
  transition: var(--transition);
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Job Detail Page */
.job-detail-page {
  padding: 2rem 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--text-light);
}

.job-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
}

.job-detail-main {
  min-width: 0;
}

.job-detail-header {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.job-detail-header-top {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.job-detail-header .company-logo {
  width: 72px;
  height: 72px;
  font-size: 1.75rem;
  border-radius: var(--radius-md);
}

.job-detail-header-info h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.job-detail-header-info .company-link {
  font-size: 1.125rem;
  color: var(--primary);
  font-weight: 500;
}

.job-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.job-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.job-detail-meta-item strong {
  color: var(--text-primary);
}

.job-detail-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.job-detail-content {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.job-section {
  margin-bottom: 2rem;
}

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

.job-section h2 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-50);
}

.job-section ul {
  list-style: none;
}

.job-section ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.job-section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

.job-description-text p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.job-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Company Sidebar */
.company-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  align-self: start;
}

.company-sidebar-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.company-sidebar-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.company-sidebar-header .company-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  font-size: 2rem;
  border-radius: var(--radius-md);
}

.company-sidebar-header h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.company-sidebar-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.company-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.company-info-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.company-info-item span:first-child {
  color: var(--text-muted);
}

.company-info-item span:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

.company-sidebar-card .btn {
  margin-bottom: 0.75rem;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.share-btn {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--text-secondary);
}

.share-btn:hover {
  background: var(--primary-50);
  border-color: var(--primary);
  color: var(--primary);
}

/* Related Jobs */
.related-jobs {
  margin-top: 3rem;
}

.related-jobs h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Category/Location Pages */
.category-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.category-hero::before {
  content: '';
  position: absolute;
  top: -100%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

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

.category-hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.category-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 0;
}

.category-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

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

.category-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.category-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.category-content {
  padding: 3rem 0;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
}

.filter-tag:hover,
.filter-tag.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Companies Page */
.companies-page-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.companies-page-header h1 {
  margin-bottom: 0.5rem;
}

.companies-search-bar {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  max-width: 600px;
}

.companies-search-bar input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  outline: none;
}

.companies-search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}

/* Company Detail */
.company-hero {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.company-hero-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.company-hero .company-logo {
  width: 120px;
  height: 120px;
  font-size: 3rem;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.company-hero-info h1 {
  color: white;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.company-hero-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.company-hero-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.company-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
}

.company-content {
  padding: 3rem 0;
}

.company-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
}

.company-main h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.company-main h2:first-child {
  margin-top: 0;
}

.company-sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* About Page */
.about-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.about-hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.about-content {
  padding: 4rem 0;
}

.about-story {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}

.about-story h2 {
  margin-bottom: 1.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.value-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  margin-bottom: 0.75rem;
}

/* Contact Page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-method {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-method h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}

.contact-method p {
  margin-bottom: 0;
}

.contact-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.contact-form h2 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Pricing Page */
.pricing-hero {
  text-align: center;
  padding: 4rem 0 2rem;
}

.pricing-hero h1 {
  margin-bottom: 1rem;
}

.pricing-hero p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}

.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: var(--transition-slow);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pricing-card-description {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.pricing-price {
  margin-bottom: 1.5rem;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.pricing-period {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.pricing-features {
  margin-bottom: 2rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.pricing-feature::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.125rem;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-logo .logo-text {
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  color: white;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--text-light);
  font-size: 0.9375rem;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

.footer-bottom p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* 404 Page */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
}

.error-content {
  max-width: 500px;
}

.error-code {
  font-size: 8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-content h1 {
  margin-bottom: 1rem;
}

.error-content p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

/* Blog Pages */
.blog-page-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.blog-page-header h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blog-page-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.blog-content {
  padding: 3rem 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.blog-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  align-self: start;
}

.blog-sidebar-widget {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.blog-sidebar-widget h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.blog-categories {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-category-link {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border-light);
}

.blog-category-link:hover {
  color: var(--primary);
}

.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 3rem 0;
}

.blog-post-content {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3rem;
}

.blog-post-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.blog-post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.blog-post-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.blog-post-body h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.blog-post-body h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

.blog-post-body p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.author-box {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-top: 2rem;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.author-info h4 {
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Post Job Page */
.post-job-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  padding: 3rem 0;
}

.post-job-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.post-job-steps {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.step.active {
  color: var(--primary);
  font-weight: 600;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.step.active .step-number {
  background: var(--primary);
  color: white;
}

.post-job-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  align-self: start;
}

.sidebar-tip {
  background: var(--primary-50);
  border-left: 4px solid var(--primary);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.sidebar-tip h4 {
  font-size: 0.9375rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.sidebar-tip p {
  font-size: 0.875rem;
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .jobs-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    order: 2;
  }
  
  .job-detail-layout,
  .company-layout,
  .blog-layout,
  .blog-post-layout,
  .post-job-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .company-sidebar,
  .blog-sidebar,
  .post-job-sidebar {
    position: static;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero {
    padding: 3rem 0 4rem;
  }
  
  .search-form {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .search-field {
    width: 100%;
  }
  
  .search-divider {
    display: none;
  }
  
  .btn-search {
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .categories-grid,
  .companies-grid,
  .features-grid,
  .blog-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .jobs-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 1rem;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-cta {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .job-detail-header-top {
    flex-direction: column;
  }
  
  .company-hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .company-hero-meta {
    justify-content: center;
  }
  
  .cta-section {
    padding: 2.5rem 1.5rem;
  }
  
  .cta-section h2 {
    font-size: 1.75rem;
  }
  
  .category-stats {
    gap: 1rem;
  }
  
  .about-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .job-detail-header,
  .job-detail-content,
  .company-sidebar-card,
  .post-job-form,
  .contact-form {
    padding: 1.25rem;
  }
  
  .blog-post-content {
    padding: 1.5rem;
  }
}
