/* Career pages — Prestige theme */

.career-hero {
  background:
    linear-gradient(rgba(5, 10, 20, 0.88), rgba(5, 10, 20, 0.92)),
    url('../images/vision_bg.jpg') center center / cover no-repeat;
  margin-bottom: 0;
}

.career-hero--compact {
  padding: 44px 0;
}

.career-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  position: relative;
  z-index: 2;
}

.career-perks {
  background: var(--prestige-white);
  border-bottom: 1px solid var(--prestige-border);
  padding: 24px 0;
}

.career-perk {
  text-align: center;
  padding: 12px 16px;
}

.career-perk i {
  font-size: 1.5rem;
  color: var(--prestige-gold);
  margin-bottom: 10px;
}

.career-perk h5 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--prestige-dark);
}

.career-perk p {
  font-size: 0.88rem;
  color: rgba(5, 10, 20, 0.65);
  margin: 0;
}

.career-section {
  padding: 32px 0 48px;
}

.career-search-card,
.career-form-card,
.career-sidebar-card,
.career-detail-card {
  border: 1px solid var(--prestige-border);
  background: var(--prestige-white);
  box-shadow: 0 8px 30px rgba(5, 10, 20, 0.06);
}

.career-search-card {
  padding: 28px;
  margin-bottom: 36px;
}

.career-search-card h5 {
  font-family: var(--font-serif);
  color: var(--prestige-dark);
  margin-bottom: 20px;
}

.career-search-card .form-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(5, 10, 20, 0.55);
  font-weight: 600;
}

.career-search-card .form-control,
.career-search-card .form-select {
  border: 1px solid var(--prestige-border);
  border-radius: 0;
  padding: 0.7rem 0.9rem;
}

.career-search-card .form-control:focus,
.career-search-card .form-select:focus {
  border-color: var(--prestige-gold);
  box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.15);
}

.career-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.career-list-header h3 {
  font-family: var(--font-serif);
  color: var(--prestige-dark);
  margin: 0;
}

.career-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 10px;
  margin-left: 8px;
  background: var(--prestige-gold);
  color: var(--prestige-dark);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
}

.career-job-card {
  border: 1px solid var(--prestige-border);
  background: var(--prestige-white);
  padding: 24px 28px;
  margin-bottom: 20px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.career-job-card:hover {
  border-color: var(--prestige-gold);
  box-shadow: 0 10px 32px rgba(197, 160, 89, 0.12);
  transform: translateY(-2px);
}

.career-job-card.is-closed {
  border-left: 4px solid #d4a017;
  opacity: 0.92;
}

.career-job-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.career-job-title a {
  color: var(--prestige-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.career-job-title a:hover {
  color: var(--prestige-gold);
}

.career-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.career-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid var(--prestige-border);
  color: rgba(5, 10, 20, 0.75);
  background: rgba(5, 10, 20, 0.03);
}

.career-badge--gold {
  background: rgba(197, 160, 89, 0.15);
  border-color: rgba(197, 160, 89, 0.35);
  color: var(--prestige-dark);
}

.career-badge--warning {
  background: rgba(212, 160, 23, 0.15);
  border-color: rgba(212, 160, 23, 0.4);
  color: #8a6508;
}

.career-job-desc {
  color: rgba(5, 10, 20, 0.65);
  font-size: 0.92rem;
  margin-bottom: 0;
  line-height: 1.65;
}

.career-job-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.career-empty {
  text-align: center;
  padding: 60px 24px;
  border: 1px dashed var(--prestige-border);
  background: rgba(5, 10, 20, 0.02);
}

.career-empty i {
  font-size: 2.5rem;
  color: rgba(197, 160, 89, 0.5);
  margin-bottom: 16px;
}

.career-empty h3 {
  font-family: var(--font-serif);
  color: var(--prestige-dark);
}

.career-pagination .page-link {
  border: 1px solid var(--prestige-border);
  color: var(--prestige-dark);
  border-radius: 0;
  margin: 0 4px;
  padding: 0.55rem 0.9rem;
}

.career-pagination .page-item.active .page-link {
  background: var(--prestige-gold);
  border-color: var(--prestige-gold);
  color: var(--prestige-dark);
}

/* Job detail */
.career-detail-header {
  background: var(--prestige-dark);
  color: var(--prestige-white);
  padding: 28px 32px;
  border-bottom: 3px solid var(--prestige-gold);
}

.career-detail-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 14px;
}

.career-detail-header .career-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.career-detail-header .salary {
  color: var(--prestige-gold);
  font-weight: 600;
  margin: 12px 0 0;
}

.career-detail-body {
  padding: 32px;
}

.career-detail-section {
  margin-bottom: 32px;
}

.career-detail-section:last-child {
  margin-bottom: 0;
}

.career-detail-section h5 {
  font-family: var(--font-serif);
  color: var(--prestige-dark);
  border-bottom: 2px solid var(--prestige-gold);
  padding-bottom: 8px;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.career-list-styled {
  list-style: none;
  padding: 0;
  margin: 0;
}

.career-list-styled li {
  position: relative;
  padding: 8px 0 8px 22px;
  color: rgba(5, 10, 20, 0.75);
  border-bottom: 1px solid rgba(5, 10, 20, 0.06);
}

.career-list-styled li:last-child {
  border-bottom: none;
}

.career-list-styled li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--prestige-gold);
  transform: rotate(45deg);
}

.career-sidebar-card {
  padding: 24px;
  margin-bottom: 20px;
}

.career-sidebar-card h5 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--prestige-dark);
}

.career-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.career-summary-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--prestige-border);
  font-size: 0.9rem;
  color: rgba(5, 10, 20, 0.75);
}

.career-summary-list li:last-child {
  border-bottom: none;
}

.career-summary-list strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--prestige-gold);
  margin-bottom: 4px;
}

.career-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--prestige-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 24px;
  transition: opacity 0.2s ease;
}

.career-back-link:hover {
  color: var(--prestige-gold);
  opacity: 0.8;
}

/* Forms */
.career-form-card .card-header,
.career-form-card-header {
  background: var(--prestige-dark);
  color: var(--prestige-white);
  padding: 22px 28px;
  border-bottom: 3px solid var(--prestige-gold);
}

.career-form-card .card-header h3,
.career-form-card-header h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0;
}

.career-form-card .card-body {
  padding: 32px 28px;
}

.career-form-card .form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--prestige-dark);
}

.career-form-card .form-control {
  border: 1px solid var(--prestige-border);
  border-radius: 0;
  padding: 0.7rem 0.9rem;
}

.career-form-card .form-control:focus {
  border-color: var(--prestige-gold);
  box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.15);
}

.career-form-card .form-control[readonly] {
  background: rgba(5, 10, 20, 0.04);
}

/* Dashboard */
.career-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.career-stat-card {
  background: var(--prestige-white);
  border: 1px solid var(--prestige-border);
  padding: 20px 16px;
  text-align: center;
  border-top: 3px solid var(--prestige-gold);
}

.career-stat-card.pending { border-top-color: #d4a017; }
.career-stat-card.shortlisted { border-top-color: #3b82c4; }
.career-stat-card.interview { border-top-color: #7c5cbf; }
.career-stat-card.accepted { border-top-color: #2d8a5e; }
.career-stat-card.rejected { border-top-color: #c0392b; }

.career-stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--prestige-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.career-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(5, 10, 20, 0.55);
  font-weight: 600;
}

.career-status-tabs {
  background: var(--prestige-white);
  border: 1px solid var(--prestige-border);
  padding: 12px;
  margin-bottom: 28px;
  overflow-x: auto;
}

.career-status-tabs .row {
  flex-wrap: nowrap;
  min-width: max-content;
}

.career-status-tab {
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: rgba(5, 10, 20, 0.55);
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.career-status-tab:hover,
.career-status-tab.active {
  color: var(--prestige-dark);
  border-bottom-color: var(--prestige-gold);
}

.career-status-tab .count {
  display: inline-block;
  background: rgba(197, 160, 89, 0.2);
  color: var(--prestige-dark);
  padding: 2px 8px;
  font-size: 0.72rem;
  margin-left: 6px;
}

.career-application-card {
  border: 1px solid var(--prestige-border);
  background: var(--prestige-white);
  margin-bottom: 20px;
  border-left: 4px solid var(--prestige-gold);
  transition: box-shadow 0.3s ease;
}

.career-application-card:hover {
  box-shadow: 0 8px 28px rgba(5, 10, 20, 0.08);
}

.career-application-card.pending { border-left-color: #d4a017; }
.career-application-card.shortlisted { border-left-color: #3b82c4; }
.career-application-card.interview { border-left-color: #7c5cbf; }
.career-application-card.accepted { border-left-color: #2d8a5e; }
.career-application-card.rejected { border-left-color: #c0392b; }

.career-application-card .card-body {
  padding: 24px 28px;
}

.career-application-card .card-footer {
  background: rgba(5, 10, 20, 0.02);
  border-top: 1px solid var(--prestige-border);
  padding: 12px 28px;
  font-size: 0.82rem;
  color: rgba(5, 10, 20, 0.55);
}

.career-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.career-status-badge.pending { background: #fef3c7; color: #92400e; }
.career-status-badge.shortlisted { background: #dbeafe; color: #1e40af; }
.career-status-badge.rejected { background: #fee2e2; color: #991b1b; }
.career-status-badge.accepted { background: #d1fae5; color: #065f46; }
.career-status-badge.interview { background: #e0e7ff; color: #3730a3; }

.career-timeline {
  margin-top: 16px;
  padding: 16px;
  background: rgba(5, 10, 20, 0.03);
  border: 1px solid var(--prestige-border);
}

.career-timeline-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--prestige-dark);
  margin-bottom: 12px;
}

.career-timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.career-timeline-steps::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--prestige-border);
  z-index: 1;
}

.career-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.career-step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--prestige-white);
  border: 2px solid var(--prestige-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  margin-bottom: 6px;
}

.career-step-label {
  font-size: 0.65rem;
  color: rgba(5, 10, 20, 0.55);
  text-align: center;
  max-width: 70px;
}

.career-timeline-step.step-completed .career-step-icon,
.career-timeline-step.step-current .career-step-icon {
  background: var(--prestige-gold);
  border-color: var(--prestige-gold);
  color: var(--prestige-dark);
}

.career-timeline-step.step-current .career-step-icon {
  animation: career-pulse 2s infinite;
}

@keyframes career-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.career-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(5, 10, 20, 0.6);
  margin-bottom: 6px;
}

.career-meta-item i {
  color: var(--prestige-gold);
  width: 16px;
}

/* Admin manage applications */
.career-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.career-admin-header h3 {
  font-family: var(--font-serif);
  margin: 0;
  color: var(--prestige-dark);
}

.career-admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.career-admin-stat {
  border: 1px solid var(--prestige-border);
  background: var(--prestige-white);
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.career-admin-stat:hover {
  border-color: var(--prestige-gold);
  transform: translateY(-2px);
  color: inherit;
}

.career-admin-stat h4 {
  font-family: var(--font-serif);
  margin: 0 0 4px;
  font-size: 1.5rem;
}

.career-admin-stat small {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(5, 10, 20, 0.55);
}

.career-admin-stat.total h4 { color: var(--prestige-gold); }
.career-admin-stat.pending h4 { color: #d4a017; }
.career-admin-stat.shortlisted h4 { color: #3b82c4; }
.career-admin-stat.accepted h4 { color: #2d8a5e; }
.career-admin-stat.rejected h4 { color: #c0392b; }
.career-admin-stat.interview h4 { color: #7c5cbf; }

.career-filter-card {
  border: 1px solid var(--prestige-border);
  background: var(--prestige-white);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.career-admin-table {
  border: 1px solid var(--prestige-border);
  background: var(--prestige-white);
}

.career-admin-table thead {
  background: var(--prestige-dark);
  color: var(--prestige-white);
}

.career-admin-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  border: none;
  padding: 14px 16px;
}

.career-admin-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  border-color: var(--prestige-border);
  font-size: 0.9rem;
}

.career-modal-header {
  background: var(--prestige-dark);
  color: var(--prestige-white);
  border-bottom: 3px solid var(--prestige-gold);
}

.career-document-viewer {
  border: 1px solid var(--prestige-border);
  padding: 15px;
  background: rgba(5, 10, 20, 0.02);
  margin-bottom: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.career-pdf-container {
  width: 100%;
  position: relative;
  border: 1px solid var(--prestige-border);
}

.career-pdf-canvas {
  width: 100%;
}

.career-pdf-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: rgba(5, 10, 20, 0.04);
}

.career-text-viewer {
  width: 100%;
  height: 350px;
  border: 1px solid var(--prestige-border);
}

.career-image-viewer {
  max-width: 100%;
  max-height: 350px;
  display: block;
  margin: 0 auto;
}

.career-unsupported-file {
  text-align: center;
  padding: 40px 20px;
  color: rgba(5, 10, 20, 0.5);
}

@media (max-width: 992px) {
  .career-dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .career-admin-stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .career-job-actions {
    margin-top: 16px;
  }
}

@media (max-width: 576px) {
  .career-dashboard-stats,
  .career-admin-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .career-detail-body,
  .career-search-card,
  .career-form-card .card-body {
    padding: 20px 16px;
  }

  .career-step-label {
    font-size: 0.55rem;
    max-width: 52px;
  }
}
