/* ==========================================================================
   CODAR TECH AFRICA - CAREERS PAGES (Phase 7)
   ========================================================================== */

/* ==========================================================================
   CAREERS HERO STATS — sits below banner showing company stats
   ========================================================================== */
.career-hero-stats {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  z-index: 2;
  margin-top: -50px;
}
@media (max-width: 767.98px) {
  .career-hero-stats { grid-template-columns: repeat(2, 1fr); padding: 20px; }
}
.career-hero-stats .chs-item {
  text-align: center;
  padding: 8px 4px;
  border-right: 1px solid var(--border-soft);
}
.career-hero-stats .chs-item:last-child { border-right: none; }
@media (max-width: 767.98px) {
  .career-hero-stats .chs-item:nth-child(2) { border-right: none; }
  .career-hero-stats .chs-item:nth-child(1),
  .career-hero-stats .chs-item:nth-child(2) { border-bottom: 1px solid var(--border-soft); padding-bottom: 16px; margin-bottom: 4px; }
}
.career-hero-stats .chs-item .chs-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--codar-primary-light);
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}
.career-hero-stats .chs-item small {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   CAREER VALUES GRID — what makes Codar a great place to work
   ========================================================================== */
.career-value {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  height: 100%;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.career-value::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 0;
  background: var(--gradient-primary);
  transition: height var(--transition-base);
}
.career-value:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--codar-primary-light);
}
.career-value:hover::before { height: 100%; }
.career-value .cv-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: rgba(30, 94, 255, 0.1);
  color: var(--codar-primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  transition: all var(--transition-base);
}
.career-value:hover .cv-icon {
  background: var(--gradient-primary);
  color: #fff;
}
.career-value h5 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.career-value p { font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   PERKS GRID — 8 small cards with icon + label
   ========================================================================== */
.perk-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  height: 100%;
  transition: all var(--transition-fast);
}
.perk-card:hover {
  transform: translateY(-4px);
  border-color: var(--codar-primary-light);
  background: rgba(30, 94, 255, 0.03);
}
.perk-card i {
  font-size: 2rem;
  color: var(--codar-primary-light);
  display: block;
  margin-bottom: 12px;
}
.perk-card h6 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.perk-card p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ==========================================================================
   JOB LISTING TOOLBAR (mirrors course/team toolbar pattern)
   ========================================================================== */
.jobs-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}
.jobs-toolbar .results-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
}
.jobs-toolbar .results-count i { color: var(--codar-primary-light); }
.jobs-toolbar .results-count strong { color: var(--text-primary); font-weight: 700; }
.jobs-toolbar .toolbar-controls {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  justify-content: flex-end;
}
.jobs-toolbar .search-box {
  position: relative;
  flex: 1 1 240px;
  max-width: 320px;
  min-width: 200px;
}
.jobs-toolbar .search-box i {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.jobs-toolbar .search-box input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 42px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--text-primary);
  font-size: 0.9rem;
}
.jobs-toolbar .search-box input:focus {
  outline: none;
  border-color: var(--codar-primary-light);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(30, 94, 255, 0.1);
}
.jobs-toolbar .filter-select {
  height: 42px;
  padding: 0 36px 0 16px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--bg-soft) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237A839A' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 01.753 1.659l-4.796 5.48a1 1 0 01-1.506 0z'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  min-width: 180px;
  appearance: none;
  -webkit-appearance: none;
}
@media (max-width: 767.98px) {
  .jobs-toolbar .results-count { width: 100%; justify-content: center; }
  .jobs-toolbar .toolbar-controls { width: 100%; }
  .jobs-toolbar .search-box { max-width: none; flex: 1 1 100%; }
}

/* ==========================================================================
   JOB DEPARTMENT FILTER (horizontally-scrollable pill row)
   ========================================================================== */
.dept-filter {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  justify-content: safe center;
  padding: 4px 4px 14px;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.dept-filter::-webkit-scrollbar { display: none; }
.dept-filter .pill {
  background: var(--bg-soft);
  color: var(--text-secondary);
  border: 1.5px solid var(--border-soft);
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dept-filter .pill:hover {
  color: var(--codar-primary-light);
  border-color: var(--codar-primary-light);
}
.dept-filter .pill.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}
.dept-filter .pill .count {
  background: rgba(255,255,255,0.18);
  color: inherit;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
}
.dept-filter .pill:not(.active) .count {
  background: var(--bg-card);
  color: var(--text-muted);
}

/* ==========================================================================
   JOB CARD — list-row style
   ========================================================================== */
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 22px;
  text-decoration: none;
  color: inherit;
}
.job-card:hover {
  transform: translateX(4px);
  border-color: var(--codar-primary-light);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.job-card .job-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  background: rgba(30, 94, 255, 0.1);
  color: var(--codar-primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all var(--transition-base);
}
.job-card:hover .job-icon {
  background: var(--gradient-primary);
  color: #fff;
}
.job-card .job-info { flex: 1; min-width: 0; }
.job-card .job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.job-card .job-tag {
  background: var(--bg-soft);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.job-card .job-tag.dept {
  background: rgba(30, 94, 255, 0.1);
  color: var(--codar-primary-light);
}
.job-card .job-tag.urgent {
  background: rgba(239, 68, 68, 0.12);
  color: var(--codar-danger);
}
.job-card .job-tag.new {
  background: rgba(16, 185, 129, 0.12);
  color: var(--codar-success);
}
.job-card h5 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  line-height: 1.35;
}
.job-card .job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.job-card .job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-card .job-meta i { color: var(--codar-primary-light); }
.job-card .job-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--codar-primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all var(--transition-base);
}
.job-card:hover .job-arrow {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateX(2px);
}
@media (max-width: 575.98px) {
  .job-card { flex-wrap: wrap; padding: 20px; }
  .job-card .job-icon { width: 50px; height: 50px; font-size: 1.25rem; }
  .job-card .job-arrow { display: none; }
}

/* ==========================================================================
   JOB DETAIL HERO
   ========================================================================== */
.job-detail-hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.job-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(245,180,0,0.15) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(30,94,255,0.4) 0%, transparent 50%);
}
.job-detail-hero > .container { position: relative; z-index: 1; }
.job-detail-hero .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0 0 18px;
  font-size: 0.88rem;
}
.job-detail-hero .breadcrumb-item { color: rgba(255,255,255,0.7); }
.job-detail-hero .breadcrumb-item a { color: var(--codar-accent); text-decoration: none; }
.job-detail-hero .breadcrumb-item.active { color: #fff; }
.job-detail-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }
.job-detail-hero .job-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,180,0,0.18);
  color: var(--codar-accent);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.job-detail-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  margin-bottom: 16px;
  line-height: 1.2;
}
.job-detail-hero .jh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
}
.job-detail-hero .jh-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-detail-hero .jh-meta i { color: var(--codar-accent); }

/* Sticky apply card on right column */
.apply-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-md);
}
.apply-card .salary-tag {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--codar-primary-light);
  line-height: 1;
  margin-bottom: 4px;
}
.apply-card .salary-note { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 18px; }
.apply-card .apply-quick {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
}
.apply-card .apply-quick li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 0.92rem;
  color: var(--text-secondary);
  align-items: flex-start;
}
.apply-card .apply-quick li:last-child { border-bottom: none; }
.apply-card .apply-quick li i {
  color: var(--codar-primary-light);
  font-size: 1.05rem;
  width: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.apply-card .apply-quick li strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
}
.apply-card .apply-quick li small {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.apply-card .share-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.apply-card .share-row a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.apply-card .share-row a:hover { background: var(--codar-primary-light); color: #fff; }

/* ==========================================================================
   JOB DETAIL BODY — descriptions, lists, headings
   ========================================================================== */
.job-body {
  font-size: 1rem;
  line-height: 1.7;
}
.job-body h3 {
  font-size: 1.4rem;
  margin: 32px 0 14px;
  color: var(--text-primary);
}
.job-body h3:first-child { margin-top: 0; }
.job-body p { margin-bottom: 18px; color: var(--text-secondary); }
.job-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.job-body ul li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.job-body ul li i {
  color: var(--codar-success);
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 4px;
}
.job-body ul li.minus i { color: var(--codar-accent); }

/* ==========================================================================
   APPLY FORM (mirrors course-details payment form pattern)
   ========================================================================== */
.apply-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 575.98px) {
  .apply-form-wrap { padding: 24px 20px; }
}
.apply-form-wrap h3 { font-size: 1.4rem; margin-bottom: 8px; }
.apply-form-wrap > p { font-size: 0.94rem; color: var(--text-secondary); margin-bottom: 26px; }

/* ==========================================================================
   APPLICATION SUCCESS PAGE
   ========================================================================== */
.application-tracker {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.tracker-step {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.tracker-step:last-child { border-bottom: none; padding-bottom: 0; }
.tracker-step:first-child { padding-top: 0; }
.tracker-step .ts-marker {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.tracker-step.done .ts-marker {
  background: var(--codar-success);
  color: #fff;
}
.tracker-step.current .ts-marker {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(30, 94, 255, 0.18);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(30, 94, 255, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(30, 94, 255, 0.08); }
}
.tracker-step .ts-body { flex: 1; }
.tracker-step h6 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  color: var(--text-primary);
}
.tracker-step.current h6 { color: var(--codar-primary-light); }
.tracker-step p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.tracker-step .ts-time {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

/* Reference number card on success page */
.ref-card {
  background: linear-gradient(135deg, rgba(30,94,255,0.06), rgba(245,180,0,0.06));
  border: 2px dashed var(--codar-primary-light);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  text-align: center;
  margin: 22px 0;
}
.ref-card small {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.ref-card .ref-num {
  font-family: 'JetBrains Mono', monospace, var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--codar-primary-light);
  letter-spacing: 2px;
  margin-top: 4px;
}

/* ==========================================================================
   CULTURE PHOTO GRID (used on careers landing)
   ========================================================================== */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 991.98px) { .culture-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .culture-grid { grid-template-columns: 1fr; } }

.culture-tile {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  transition: all var(--transition-base);
}
.culture-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.culture-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.culture-tile:hover img { transform: scale(1.07); }
.culture-tile .culture-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,42,110,0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
}
.culture-tile .culture-caption strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
}
