/* =========================================================================
   Career Page Stylesheet
   Niche Techies - Join our awesome team of professionals!
   ========================================================================= */

.career-page-main {
  width: 100%;
  overflow-x: hidden;
}

.careerpage-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: block;
}

@media (min-width: 768px) {
  .careerpage-container {
    padding: 0 3.5rem;
  }
}

/* =========================================================================
   1. Career Hero Section ("Join Our Awesome Team of Professionals.")
   ========================================================================= */
.career-hero-section {
  position: relative;
  background-color: #060e1d;
  background-image: 
    linear-gradient(90deg, 
      rgba(255, 255, 255, 1) 0%, 
      rgba(255, 255, 255, 0.98) 28%, 
      rgba(255, 255, 255, 0.75) 40%, 
      rgba(255, 255, 255, 0.2) 50%, 
      transparent 56%
    ),
    linear-gradient(90deg, 
      transparent 35%, 
      rgba(15, 28, 58, 0.18) 55%, 
      rgba(10, 21, 46, 0.45) 75%, 
      rgba(6, 14, 32, 0.68) 100%
    ),
    url('../assets/images/career-banner.jpeg');
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 8.5rem 0 5rem;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 1400px) {
  .career-hero-section {
    padding: 9rem 0 5.5rem;
  }
}

@media (max-width: 1024px) {
  .career-hero-section {
    background-image: 
      linear-gradient(90deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.98) 36%, 
        rgba(255, 255, 255, 0.7) 50%, 
        transparent 65%
      ),
      linear-gradient(90deg, 
        transparent 30%, 
        rgba(15, 28, 58, 0.25) 55%, 
        rgba(6, 14, 32, 0.65) 100%
      ),
      url('../assets/images/career-banner.jpeg');
    background-position: 75% center;
    padding: 7.5rem 0 4.25rem;
  }
}

@media (max-width: 768px) {
  .career-hero-section {
    background-image: 
      linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.52) 45%, rgba(240, 245, 252, 0.75) 80%, rgba(244, 247, 251, 0.92) 100%),
      url('../assets/images/career-banner.jpeg');
    background-position: center center;
    padding: 6.75rem 0 3.5rem;
  }
}

.career-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Left Content Column */
.career-hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

/* Eyebrow */
.career-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.career-hero-title {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0c1524;
  margin-bottom: 0.85rem;
}

.career-hero-desc {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.68;
  color: #475569;
  margin-bottom: 1.85rem;
  max-width: 540px;
}

/* Action Buttons */
.career-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn-career-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.68rem 1.5rem;
  border-radius: 9999px;
  background: #0f172a;
  color: #ffffff !important;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-career-primary:hover {
  background: #1e293b;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -3px rgba(15, 23, 42, 0.3);
}

.btn-career-primary svg {
  transition: transform 0.25s ease;
}

.btn-career-primary:hover svg {
  transform: translateX(3px);
}

.btn-career-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.68rem 1.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid #cbd5e1;
  color: #0f172a !important;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-career-secondary:hover {
  border-color: #0f172a;
  background: #ffffff;
  color: #0f172a !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.1);
}

.btn-career-secondary svg {
  transition: transform 0.25s ease;
}

.btn-career-secondary:hover svg {
  transform: translateY(2px);
}

/* =========================================================================
   2. Open Positions Section
   ========================================================================= */
.career-positions-section {
  padding: 4rem 0 6rem;
  background-color: #ffffff;
}

@media (min-width: 1024px) {
  .career-positions-section {
    padding: 5rem 0 7rem;
  }
}

/* Positions Top Bar (Heading + Filters) */
.positions-top-bar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .positions-top-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.positions-top-bar .positions-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.positions-top-bar .positions-heading .positions-count {
  font-weight: 700;
  color: #0f172a;
}

.positions-top-bar .positions-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.positions-top-bar .positions-filters .filter-select-wrapper {
  position: relative;
  display: inline-block;
}

.positions-top-bar .positions-filters .filter-select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.65rem 2.6rem 0.65rem 1.15rem;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.positions-top-bar .positions-filters .filter-select-wrapper select:hover {
  border-color: #cbd5e1;
}

.positions-top-bar .positions-filters .filter-select-wrapper select:focus {
  border-color: #1a2b4b;
  box-shadow: 0 0 0 3px rgba(26, 43, 75, 0.12);
}

.positions-top-bar .positions-filters .filter-select-wrapper .filter-select-arrow {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
  display: flex;
  align-items: center;
}

/* Jobs Table Container */
.positions-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.positions-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.positions-table thead tr {
  border-bottom: 1.5px solid #eef2f6;
}

.positions-table thead tr th {
  padding: 1rem 1rem 1rem 0;
  font-family: var(--font-heading);
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  text-align: left;
}

.positions-table thead tr th.th-apply {
  text-align: right;
  padding-right: 1rem;
}

.positions-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}

.positions-table tbody tr:hover {
  background-color: #f8fafc;
}

.positions-table tbody tr:hover .job-title {
  color: #1a2b4b;
}

.positions-table tbody tr:hover .btn-apply svg {
  transform: translateX(4px);
}

.positions-table tbody tr td {
  padding: 1.5rem 1rem 1.5rem 0;
  vertical-align: middle;
}

.positions-table tbody tr td.td-role .job-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.positions-table tbody tr td.td-role .job-dept {
  font-family: var(--font-body);
  font-size: 0.825rem;
  color: #64748b;
}

.positions-table tbody tr td.td-location .location-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #475569;
}

.positions-table tbody tr td.td-location .location-tag svg {
  color: #1a2b4b;
  flex-shrink: 0;
}

.positions-table tbody tr td.td-type {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #64748b;
}

.positions-table tbody tr td.td-apply {
  text-align: right;
  padding-right: 1rem;
}

.positions-table tbody tr td.td-apply .btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a2b4b;
  text-decoration: none;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.positions-table tbody tr td.td-apply .btn-apply svg {
  transition: transform 0.2s ease;
}

.positions-table tbody tr td.td-apply .btn-apply:hover {
  color: #111d33;
}

/* No Results Row */
.no-jobs-found {
  display: none;
  text-align: center;
  padding: 3.5rem 1rem;
  color: #64748b;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.no-jobs-found.is-visible {
  display: block;
}

/* Pagination */
.positions-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 3.5rem;
}

.positions-pagination .page-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.positions-pagination .page-btn:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.positions-pagination .page-btn.active {
  background-color: #09172a;
  color: #ffffff;
  font-weight: 700;
}

.positions-pagination .page-btn.page-arrow {
  color: #94a3b8;
}

.positions-pagination .page-btn.page-arrow:hover {
  color: #0f172a;
}

/* =========================================================================
   3. Job Application Modal
   ========================================================================= */
.career-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 14, 27, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.career-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.career-modal-backdrop.is-open .career-modal-card {
  transform: translateY(0) scale(1);
}

.career-modal-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem 2.25rem;
  transform: translateY(20px) scale(0.97);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.career-modal-card .modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.career-modal-card .modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.career-modal-card .modal-header {
  margin-bottom: 1.75rem;
}

.career-modal-card .modal-header .modal-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a2b4b;
  display: block;
  margin-bottom: 0.35rem;
}

.career-modal-card .modal-header .modal-job-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.career-modal-card .modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.career-modal-card .modal-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .career-modal-card .modal-form .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.career-modal-card .modal-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.career-modal-card .modal-form .form-group label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}

.career-modal-card .modal-form .form-group input,
.career-modal-card .modal-form .form-group textarea {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.career-modal-card .modal-form .form-group input:focus,
.career-modal-card .modal-form .form-group textarea:focus {
  border-color: #1a2b4b;
  box-shadow: 0 0 0 3px rgba(26, 43, 75, 0.12);
}

.career-modal-card .modal-form .modal-submit-btn {
  margin-top: 0.75rem;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  background: #09172a;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.career-modal-card .modal-form .modal-submit-btn:hover {
  background: #1a2b4b;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -5px rgba(26, 43, 75, 0.3);
}
