/* ==========================================================================
   National PALS - Careers Page Stylesheet (2-Grid Tiles & Direct Apply Flow)
   ========================================================================== */

.careers-page-wrap {
  background-color: #F8FAFC;
  padding-bottom: 90px;
}

/* --- Openings Section Header & Filter Controls --- */
.career-openings-section {
  padding: 50px 0 20px;
}

.career-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #FFFFFF;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.career-dept-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.career-dept-btn {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.career-dept-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.career-dept-btn.active {
  background: #183FA4;
  color: #FFFFFF;
  border-color: #183FA4;
  box-shadow: 0 2px 8px rgba(24, 63, 164, 0.25);
}

.career-search-box {
  position: relative;
  min-width: 280px;
  flex-grow: 1;
  max-width: 360px;
}

.career-search-input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1px solid #CBD5E1;
  border-radius: 30px;
  font-size: 13.5px;
  background: #F8FAFC;
  outline: none;
  transition: all 0.2s ease;
}

.career-search-input:focus {
  background: #FFFFFF;
  border-color: #183FA4;
  box-shadow: 0 0 0 3px rgba(24, 63, 164, 0.12);
}

.career-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 14px;
  pointer-events: none;
}

/* ==========================================================================
   2-GRID TILES LAYOUT (Strict 2-Column Responsive Matrix)
   ========================================================================== */
.career-jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.career-job-tile {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.career-job-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
  border-color: #183FA4;
}

.career-job-tile.is-urgent {
  border-top: 3px solid #DC2626;
}

/* Card Top Badges */
.career-tile-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.career-meta-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.career-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.career-badge-dept {
  background: #EFF6FF;
  color: #183FA4;
  border: 1px solid #BFDBFE;
}

.career-badge-type {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.career-badge-urgent {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
  font-weight: 800;
}

/* Job Title */
.career-tile-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.career-job-tile:hover .career-tile-title {
  color: #183FA4;
}

/* Attribute Pills Row */
.career-tile-attributes {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.career-attr-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748B;
  font-weight: 500;
}

.career-attr-item i {
  color: #94A3B8;
  font-size: 13px;
}

/* Summary */
.career-tile-summary {
  font-family: var(--font-instrument);
  font-size: 15px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Quick Highlights Bullets */
.career-tile-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  border-top: 1px solid #F1F5F9;
  padding-top: 16px;
}

.career-tile-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 8px;
}

.career-tile-highlights li i {
  color: #10B981;
  font-size: 13px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Card Action Buttons */
.career-tile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #E2E8F0;
  margin-top: auto;
}

.btn-career-details {
  background: #F8FAFC;
  color: #1E293B;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  text-decoration: none;
}

.btn-career-details:hover {
  background: #E2E8F0;
  border-color: #94A3B8;
  color: #0F172A;
}

.btn-career-apply {
  background: #183FA4;
  color: #FFFFFF !important;
  border: 1px solid #183FA4;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1.2;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(24, 63, 164, 0.2);
  text-decoration: none;
}

.btn-career-apply:hover {
  background: #102B73;
  border-color: #102B73;
  box-shadow: 0 4px 12px rgba(24, 63, 164, 0.3);
  color: #FFFFFF !important;
}

/* --- Empty Search State --- */
.career-empty-state {
  grid-column: 1 / -1;
  background: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: 12px;
  padding: 60px 30px;
  text-align: center;
}

.career-empty-icon {
  width: 64px;
  height: 64px;
  background: #F1F5F9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #94A3B8;
  margin: 0 auto 18px;
}

/* ==========================================================================
   JOB DETAILS MODAL
   ========================================================================== */
.career-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.career-modal-container {
  background: #FFFFFF;
  border-radius: 12px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.career-modal-header {
  padding: 24px 28px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.career-modal-header h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: #0F172A;
  margin: 0 0 6px 0;
}

.career-modal-header p {
  font-size: 13.5px;
  color: #64748B;
  margin: 0;
}

.career-modal-close {
  background: #E2E8F0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  font-size: 16px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.career-modal-close:hover {
  background: #DC2626;
  color: #FFFFFF;
}

.career-modal-body {
  padding: 28px;
  overflow-y: auto;
  line-height: 1.65;
}

.career-modal-footer {
  padding: 18px 28px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   RESPONSIVE BEHAVIOR
   ========================================================================== */
@media (max-width: 991px) {
  .career-jobs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .career-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .career-search-box {
    max-width: 100%;
  }
  .career-tile-actions {
    flex-direction: column;
  }
  .btn-career-details,
  .btn-career-apply {
    width: 100%;
  }
}
