/* ==========================================================================
   Premium Careers UI Redesign
   ========================================================================== */

/* Base Layout & Typography */
.ke-careers-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Premium subtle gradient background */
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: #1e293b;
}

.ke-careers-main {
  flex: 1;
  position: relative;
}

/* Subtle background accent blobs (pseudo-elements on main) */
.ke-careers-main::before,
.ke-careers-main::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}
.ke-careers-main::before {
  top: 5%;
  left: 0%;
  width: 400px;
  height: 400px;
  background: rgba(38, 173, 95, 0.15); /* Brand secondary */
}
.ke-careers-main::after {
  bottom: 10%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: rgba(237, 80, 36, 0.12); /* Brand primary */
}

/* Ensure container sits above background blobs */
.ke-careers-main > .container {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Job Cards (Glassmorphism & Micro-animations)
   ========================================================================== */
.ke-careers-card {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.ke-careers-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(38, 173, 95, 0.2) !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

/* Image Zoom Effect */
.ke-careers-card .ratio {
  overflow: hidden;
}
.ke-careers-card .ratio img {
  transition: transform 0.6s ease;
}
.ke-careers-card:hover .ratio img {
  transform: scale(1.08);
}

/* Card Title */
.ke-careers-card .card-title a {
  color: #0f172a !important;
  font-weight: 700;
  transition: color 0.2s ease;
}
.ke-careers-card:hover .card-title a {
  background: linear-gradient(90deg, #ed5024, #26ad5f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Badges (Pills) */
.ke-careers-card .badge {
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 0.4em 0.8em;
  border-radius: 20px;
  background: rgba(241, 245, 249, 0.8) !important;
  color: #475569 !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  transition: all 0.3s ease;
}
.ke-careers-card:hover .badge {
  background: #fff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* ==========================================================================
   Sidebar Filters
   ========================================================================== */
.ke-careers-filters {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 100px; /* Sticky scroll */
}

.ke-careers-filters h2 {
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem !important;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f1f5f9;
}

.ke-careers-filters .form-label {
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.ke-careers-filters .form-select {
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  background-color: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
  cursor: pointer;
}

.ke-careers-filters .form-select:focus {
  border-color: #26ad5f;
  box-shadow: 0 0 0 3px rgba(38, 173, 95, 0.15);
}

/* ==========================================================================
   Job Count Header
   ========================================================================== */
#keCareersCount {
  font-weight: 600;
  color: #64748b !important;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#keCareersCount::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #26ad5f;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(38, 173, 95, 0.2);
}

/* ==========================================================================
   Prose (Job Single View styling)
   ========================================================================== */
.ke-careers-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.ke-careers-prose {
  line-height: 1.8;
  color: #334155;
}

.ke-careers-prose h1,
.ke-careers-prose h2,
.ke-careers-prose h3 {
  color: #0f172a;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Empty State */
.ke-careers-main .bg-light.border.text-center {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(10px);
  border: 1px dashed #cbd5e1 !important;
}
